@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
html {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
html.dark-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
body {
    margin-left: 70px;
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
* {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
body.dark-theme ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
body.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem;
    transition: background 0.3s ease, color 0.3s ease;
}
body.dark-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
body.dark-theme .glass-card,
body.dark-theme .header-card,
body.dark-theme .staff-card,
body.dark-theme .stat-card {
    background: rgba(30, 30, 46, 0.98);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 1rem;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
body.dark-theme .header-user {
    background: rgba(102, 126, 234, 0.2);
}
.header-user-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    overflow: hidden;
}
.header-user-avatar img {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.header-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.header-user-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}
body.dark-theme .header-user-name {
    color: #e0e0e0;
}
.header-user-role {
    font-size: 0.8rem;
    color: #6b7280;
}
body.dark-theme .header-user-role {
    color: #9ca3af;
}
.header-user-solariki {
    font-size: 0.75rem;
    color: #f59e0b;
    font-weight: 600;
}
body.dark-theme .header-user-solariki {
    color: #fbbf24;
}
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme .text-gray-800 {
    color: #e0e0e0 !important;
}
body.dark-theme .text-gray-600,
body.dark-theme .text-gray-700 {
    color: #b0b0b0 !important;
}
body.dark-theme .stat-label {
    color: #b0b0b0 !important;
}
body.dark-theme .stat-value {
    color: #e0e0e0 !important;
}
body.dark-theme .member-card {
    background: rgba(40, 40, 56, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-theme .modal-content {
    background: rgba(30, 30, 46, 0.98);
    color: #e0e0e0;
}
body.dark-theme .input-field {
    background: rgba(40, 40, 56, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}
body.dark-theme .input-field:focus {
    border-color: #667eea;
    background: rgba(40, 40, 56, 0.95);
}
body.dark-theme .staff-list {
    background: rgba(30, 30, 46, 0.95);
}
body.dark-theme .staff-member {
    background: rgba(40, 40, 56, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
body.dark-theme .staff-member:hover {
    background: rgba(50, 50, 66, 0.95) !important;
}
body.dark-theme .search-box,
body.dark-theme .filter-select {
    background: rgba(40, 40, 56, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}
body.dark-theme .search-box::placeholder {
    color: #808080;
}
body.dark-theme select option {
    background: #1e1e2e;
    color: #e0e0e0;
}
body.dark-theme .badge {
    background: rgba(50, 50, 66, 0.8);
    color: #e0e0e0;
}
body.dark-theme .role-owner,
body.dark-theme .role-developer,
body.dark-theme .role-tex-admin,
body.dark-theme .role-admin,
body.dark-theme .role-curator,
body.dark-theme .role-zam-curator,
body.dark-theme .role-gl-staff,
body.dark-theme .role-moder,
body.dark-theme .role-ct-helper,
body.dark-theme .role-helper {
    filter: brightness(1.2);
}
body.dark-theme .user-info {
    background: rgba(40, 40, 56, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-theme .user-info p,
body.dark-theme .user-info strong {
    color: #e0e0e0 !important;
}
body.dark-theme label {
    color: #b0b0b0 !important;
}
body.dark-theme table {
    color: #e0e0e0;
}
body.dark-theme table thead {
    background: rgba(50, 50, 66, 0.8);
}
body.dark-theme table tbody tr {
    background: rgba(40, 40, 56, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-theme table tbody tr:hover {
    background: rgba(50, 50, 66, 0.8);
}
body.dark-theme .btn {
    border-color: rgba(255, 255, 255, 0.2);
}
body.dark-theme .btn-secondary {
    background: rgba(50, 50, 66, 0.8);
    color: #e0e0e0;
}
body.dark-theme .btn-secondary:hover {
    background: rgba(60, 60, 76, 0.9);
}
body.dark-theme .application-card,
body.dark-theme .archive-card {
    background: rgba(40, 40, 56, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
body.dark-theme .application-card:hover,
body.dark-theme .archive-card:hover {
    background: rgba(50, 50, 66, 0.95) !important;
}
body.dark-theme textarea,
body.dark-theme select {
    background: rgba(40, 40, 56, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}
body.dark-theme .loading {
    color: #e0e0e0;
}
body.dark-theme .text-sm,
body.dark-theme .text-xs {
    color: #b0b0b0 !important;
}
body.dark-theme p {
    color: #b0b0b0;
}
body.dark-theme strong {
    color: #e0e0e0;
}
body.dark-theme .user-card,
body.dark-theme .info-card,
body.dark-theme .user-info-card {
    background: rgba(40, 40, 56, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
body.dark-theme .user-info-card p,
body.dark-theme .user-info-card .text-gray-600 {
    color: #b0b0b0 !important;
}
body.dark-theme .user-info-card .text-gray-800 {
    color: #e0e0e0 !important;
}
body.dark-theme .staff-card,
body.dark-theme .staff-grid .staff-card {
    background: rgba(40, 40, 56, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
}
body.dark-theme .staff-card:hover,
body.dark-theme .staff-grid .staff-card:hover {
    background: rgba(50, 50, 66, 0.95) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
}
body.dark-theme .staff-card h3,
body.dark-theme .staff-card .text-gray-900 {
    color: #e0e0e0 !important;
}
body.dark-theme .staff-card .text-gray-500,
body.dark-theme .staff-card .text-gray-600 {
    color: #b0b0b0 !important;
}
body.dark-theme [style*="background: rgba(255, 255, 255"],
body.dark-theme [style*="background:rgba(255,255,255"] {
    background: rgba(40, 40, 56, 0.95) !important;
}
body.dark-theme .stat-icon {
    opacity: 0.9;
}
body.dark-theme .status-badge {
    filter: brightness(1.1);
}
body.dark-theme .btn-success,
body.dark-theme .btn-warning,
body.dark-theme .btn-danger {
    filter: brightness(1.1);
}
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.header-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}
.stat-icon {
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1.5rem;
}
.stat-icon-blue {
    background: #dbeafe;
    color: #3b82f6;
}
.stat-icon-green {
    background: #dcfce7;
    color: #22c55e;
}
.stat-icon-yellow {
    background: #fef3c7;
    color: #eab308;
}
.stat-icon-red {
    background: #fee2e2;
    color: #ef4444;
}
.filters-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
}
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.input-field:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn:hover {
    transform: scale(1.05);
}
.btn:active {
    transform: scale(0.95);
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
}
.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}
.btn-danger {
    background: #ef4444;
    color: white;
}
.btn-warning {
    background: #eab308;
    color: white;
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.position-owner { background: #fee2e2; color: #991b1b; }
.position-developer { background: #dcfce7; color: #166534; }
.position-texadmin { background: #dbeafe; color: #1e40af; }
.position-admin { background: #e9d5ff; color: #6b21a8; }
.position-curator { background: #d1fae5; color: #065f46; }
.position-zamcurator { background: #dcfce7; color: #166534; }
.position-glstaff { background: #fef3c7; color: #92400e; }
.position-moder { background: #fed7aa; color: #9a3412; }
.position-cthelper { background: #dcfce7; color: #166534; }
.position-helper { background: #fce7f3; color: #9f1239; }
.status-active { background: #dcfce7; color: #166534; }
.status-fired { background: #f3f4f6; color: #6b7280; }
.status-blacklist { background: #fee2e2; color: #991b1b; }
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}
.header-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.staff-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.staff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0 !important;
}
.modal.active {
    display: flex;
}
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid;
}
.toast.success {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}
.toast.error {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}
.toast.info {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}
.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.toast.success .toast-icon {
    color: #22c55e;
}
.toast.error .toast-icon {
    color: #ef4444;
}
.toast.info .toast-icon {
    color: #3b82f6;
}
.toast-message {
    flex: 1;
    color: #ffffff;
    font-weight: 500;
}
.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}
.toast.removing {
    animation: slideOut 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}
.role-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.role-badge i {
    margin-right: 6px;
    font-size: 1rem;
}
.role-owner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    animation: glow-gold 2s ease-in-out infinite;
}
@keyframes glow-gold {
    0%, 100% { box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.3); }
}
.role-developer {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
    animation: glow-purple 2s ease-in-out infinite;
}
@keyframes glow-purple {
    0%, 100% { box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.6); }
}
.role-tex-admin {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: white;
    animation: glow-blue 2s ease-in-out infinite;
}
@keyframes glow-blue {
    0%, 100% { box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.6); }
}
.role-admin {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    animation: glow-red 2s ease-in-out infinite;
}
@keyframes glow-red {
    0%, 100% { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.6); }
}
.role-curator {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}
.role-zam-curator {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    color: white;
}
.role-gl-staff {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    color: white;
}
.role-moder {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: white;
}
.role-ct-helper {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
}
.role-helper {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
}
.modal-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 750px;
    width: 98%;
    max-height: 90vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    box-sizing: border-box;
    overflow: visible;
}
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}
.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.modal-footer .btn {
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
