/* Dashboard Styles - Cybersecurity Theme */
:root {
    --cyber-background: #0a0a0a;
    --cyber-accent: #00ff99;
    --cyber-accent-alt: #00ccff;
    --cyber-panel: #141414;
    --cyber-border: #232323;
    --cyber-text-bright: #e5e5e5;
    --cyber-text-dim: #a0a0a0;
    --cyber-glow: 0 0 15px rgba(0, 255, 153, 0.4);
    --cyber-glow-alt: 0 0 15px rgba(0, 204, 255, 0.3);
    --cyber-panel-gradient: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
    --cyber-panel-gradient-alt: linear-gradient(to right, rgba(0, 255, 153, 0.03), rgba(0, 204, 255, 0.01), rgba(0, 255, 153, 0.03));
    --ticker-bg: rgba(20, 20, 20, 0.85);
    --white: #ffffff;
    --border: 1px solid var(--cyber-accent);
}

/* Fixed Terminal adjustment styles - zgodne z style.css */
body {
    display: grid;
    grid-template-columns: 1fr 42%;
    min-height: 100vh;
    transition: grid-template-columns 0.3s ease-in-out;
    background-color: var(--cyber-background);
    margin: 0;
    font-family: 'Ubuntu Mono', monospace;
    color: var(--cyber-text-dim);
    overflow-x: hidden;
}

body.terminal-hidden {
    grid-template-columns: 1fr;
}

.container {
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    transition: width 0.3s, max-width 0.3s, margin 0.3s;
    padding-top: 60px;
    padding-bottom: 60px;
}

body.terminal-hidden .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

body:not(.terminal-hidden) .container {
    width: 95%;
    max-width: 100%;
    margin-left: 20px;
    margin-right: auto;
}


/* Context menu avatar styling - nadpisanie dla spójności */
.context-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Fira Code", "Noto Sans JP", monospace !important;
    font-size: 0.9rem !important;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--cyber-accent);
    box-shadow: var(--glow);
    object-fit: cover;
}

/* Logo and quote styling */
.logo-quote-container {
    margin: 2rem 0;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: var(--cyber-panel-gradient);
    border: 1px solid var(--cyber-border);
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.logo-quote-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyber-accent), transparent);
    opacity: 0.7;
}

.logo-quote-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cyber-panel-gradient-alt);
    pointer-events: none;
}

.logo-glitch {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    color: var(--cyber-accent);
    text-shadow: var(--cyber-glow);
    margin: 0;
    position: relative;
    z-index: 2;
}

.quote-container {
    position: relative;
    flex-grow: 1;
    padding: 1rem;
    border-left: 1px solid var(--cyber-border);
    z-index: 2;
}

.cyber-text {
    font-family: 'Press Start 2P', cursive;
    color: var(--cyber-text-bright);
    font-size: 0.8rem;
    position: relative;
    text-shadow: var(--cyber-glow);
    letter-spacing: 0.05em;
}

.quote-author {
    color: var(--cyber-accent-alt);
    font-size: 0.7rem;
    margin-top: 0.5rem;
    text-align: right;
}

/* Card Styling - Cyber themed */
.cyber-card {
    background: var(--cyber-panel-gradient);
    border: 1px solid var(--cyber-border);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyber-accent), transparent);
    opacity: 0.7;
}

.cyber-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cyber-panel-gradient-alt);
    pointer-events: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--cyber-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.cyber-h3 {
    color: var(--cyber-accent);
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin: 0;
    text-shadow: var(--cyber-glow);
    position: relative;
}

.card-lights {
    display: flex;
    gap: 8px;
}

.led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.red {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    animation-delay: 0.3s;
}

.yellow {
    background: linear-gradient(135deg, #ffcc00, #cc9900);
    animation-delay: 0.6s;
}

.green {
    background: linear-gradient(135deg, #00cc66, #009933);
    animation-delay: 0.9s;
}

@keyframes pulse {
    0% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.4; transform: scale(0.95); }
}

.card-content {
    position: relative;
    z-index: 2;
}

/* Form elements styling */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    color: var(--cyber-text-bright);
    margin-bottom: 0.5rem;
    font-family: 'Ubuntu Mono', monospace;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--cyber-border);
    color: var(--cyber-text-bright);
    font-family: 'Ubuntu Mono', monospace;
    border-radius: 3px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--cyber-accent);
    outline: none;
    box-shadow: var(--cyber-glow);
}

/* Button styling */
.cyber-button,
.edit-button, 
.delete-button, 
.generate-report-button, 
.set-password-button,
.back-button {
    background: linear-gradient(90deg, rgba(0, 255, 153, 0.1), rgba(0, 255, 153, 0.2));
    color: var(--cyber-accent);
    border: 1px solid rgba(0, 255, 153, 0.3);
    padding: 0.8rem 1.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin: 0.5rem 0.5rem 0.5rem 0;
    position: relative;
    text-decoration: none;
}

.cyber-button:hover,
.edit-button:hover,
.delete-button:hover,
.generate-report-button:hover,
.set-password-button:hover,
.back-button:hover {
    background: rgba(0, 255, 153, 0.25);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.5);
    transform: translateY(-2px);
}

.edit-button {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1), rgba(255, 204, 0, 0.2));
    color: #ffcc00;
    border-color: rgba(255, 204, 0, 0.3);
}

.delete-button {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.1), rgba(255, 51, 51, 0.2));
    color: #ff3333;
    border-color: rgba(255, 51, 51, 0.3);
}

.generate-report-button {
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.1), rgba(0, 204, 255, 0.2));
    color: #00ccff;
    border-color: rgba(0, 204, 255, 0.3);
}

.set-password-button {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.1), rgba(255, 0, 255, 0.2));
    color: #ff00ff;
    border-color: rgba(255, 0, 255, 0.3);
}

/* Project item styling */
.project-item {
    border: 1px solid var(--cyber-border);
    border-radius: 5px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    background: rgba(20, 20, 20, 0.6);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.project-item:hover {
    box-shadow: var(--cyber-glow);
    transform: translateY(-2px);
    border-color: rgba(0, 255, 153, 0.5);
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyber-accent), transparent);
    opacity: 0.5;
}

.project-item a.cyber-text {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--cyber-accent);
    text-decoration: none;
    font-family: 'Ubuntu Mono', monospace;
    font-weight: bold;
}

.project-item .quote-author {
    color: var(--cyber-text-dim);
    font-size: 0.8rem;
    margin: 0.3rem 0;
    text-align: left;
}

.password-status {
    font-size: 0.8rem;
    margin: 0.3rem 0;
    color: var(--cyber-text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-status:before {
    content: '\f023';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--cyber-accent-alt);
}

.task-list {
    margin: 1rem 0;
    background: rgba(10, 10, 10, 0.5);
    padding: 0.8rem;
    border-left: 2px solid var(--cyber-accent);
    border-radius: 0 3px 3px 0;
}

.task-item {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--cyber-text-bright);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-item:before {
    content: '\f0ae';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--cyber-accent);
    font-size: 0.8rem;
}

/* Project actions */
.project-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Message styling */
.success-message, .error-message { 
    opacity: 0; 
    transition: opacity 0.5s ease-in-out;
    padding: 0.5rem;
    margin: 1rem auto;
    border-radius: 3px;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    width: fit-content;
    min-width: 200px;
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border: none;
    outline: none;
}

.success-message { 
    background: linear-gradient(135deg, #00b36b, #008040);
    color: var(--white);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.5);
}

.error-message { 
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: var(--white);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.success-message.show, .error-message.show { opacity: 1; }

/* Threat Ticker styling removed - using styles from style.css */

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

#### .scanline {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--cyber-accent), transparent);
    opacity: 0.6;
    z-index: 901;
    animation: scan 3s linear infinite;
}
####

@keyframes scan {
    0% { transform: translateY(0); }
    50% { transform: translateY(-100vh); }
    100% { transform: translateY(0); }
}

/* Responsive styles */
@media (max-width: 768px) {
    .logo-quote-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .quote-container {
        border-left: none;
        border-top: 1px solid var(--cyber-border);
        padding-top: 1rem;
        margin-top: 1rem;
    }
    
    .context-menu {
        right: 0;
    }
    
    .context-item span {
        display: none;
    }
    
    .project-actions {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    body {
        display: block;
    }
    
    .container {
        width: 95%;
        max-width: 100%;
        padding: 60px 10px 60px 10px;
        margin: 0 auto;
    }
    
    .terminal {
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
        transform: translateY(100%);
        border-left: none;
        border-top: 2px solid var(--cyber-accent);
    }
    
    .terminal.visible {
        transform: translateY(0);
    }
    
    .toggle-terminal {
        bottom: 20px;
        top: auto;
        right: 50%;
        transform: translateX(50%);
    }

    .toggle-terminal i {
        transform: rotate(90deg);
    }

    .toggle-terminal.visible i {
        transform: rotate(270deg);
    }
}