* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #4a6cf7 0%, #6a3de8 100%);
    --primary-color: #4a6cf7;
    --primary-dark: #3a56d4;
    --primary-light: #7b93f9;

    --card-bg: rgba(255, 255, 255, 0.98);
    --shadow: 0 8px 32px rgba(74, 108, 247, 0.15);
    --shadow-hover: 0 12px 40px rgba(74, 108, 247, 0.25);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --color-hr: #e74c6f;
    --color-production: #1abc9c;
    --color-it: #3498db;
    --color-supply: #f39c12;
    --color-warehouse: #8e44ad;
    --color-service: #a29bfe;
    --color-tech: #fd79a8;
    --color-admin: #00b894;

    --bg-light: #f8f9fa;
    --bg-hover: #e9ecef;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #e8edf5 0%, #d5dce6 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

/* ==================== Header ==================== */
.header {
    background: var(--card-bg);
    padding: 16px 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-text h1 {
    font-size: 28px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
    line-height: 1.2;
}

.header-text p {
    color: var(--text-secondary);
    font-size: 13px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    background: var(--bg-light);
    border-radius: 50px;
    border: 1px solid #e1e5eb;
    transition: var(--transition);
}

.user-info:hover {
    border-color: var(--primary-color);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.user-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.user-badge.manager {
    background: #d4edda;
    color: #155724;
}

.user-badge.employee {
    background: #d1ecf1;
    color: #0c5460;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #e1e5eb;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-logout:hover {
    background: #fee;
    border-color: #e74c6f;
    color: #e74c6f;
}

.btn-logout svg {
    width: 18px;
    height: 18px;
}

/* ==================== Responsive Header ==================== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
    }
    .header-left {
        justify-content: center;
    }
    .header-right {
        justify-content: center;
        padding-top: 12px;
        border-top: 1px solid #e1e5eb;
    }
    .header-text h1 {
        font-size: 22px;
    }
    .header-logo {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .user-info {
        padding: 4px 12px 4px 4px;
    }
    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    .user-name {
        font-size: 13px;
    }
    .user-details .user-badge {
        font-size: 9px;
        padding: 0 6px;
    }
}