
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #0f172a;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}


.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.bg-shape-1 {
    width: 300px;
    height: 300px;
    background-color: #ffffff;
    top: -50px;
    left: -50px;
}

.bg-shape-2 {
    width: 400px;
    height: 400px;
    background-color: #000000;
    bottom: -100px;
    right: -100px;
}

.login-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.login-card .logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    flex-direction: row;
    justify-content: center;
}

.login-card .logo-icon {
    width: 80px;  
    height: 80px; 
    flex-shrink: 0;
}

.login-card .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-card .logo-text {
    text-align: left;
}

.login-card .logo-container h1 {
    margin: 0;
    font-size: 28px;
    color: #1e293b;
    line-height: 1.2;
    font-weight: 700;
}

.login-card .logo-container .subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

.logo-fallback {
    width: 80px;  
    height: 80px; 
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 28px;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #10b981;
    margin-bottom: 20px;
}

.security-badge svg {
    fill: currentColor;
}

.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.alert-success {
    background-color: #d1fae5;
    color: #059669;
    border: 1px solid #6ee7b7;
}

.alert strong {
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
    color: #374151;
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #9ca3af;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 38px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
}

.input-wrapper input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me input {
    margin-right: 6px;
    cursor: pointer;
}

.forgot-password {
    color: #4f46e5;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #4338ca;
    text-decoration: underline;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4f46e5;
    color: white;
    font-weight: 600;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    gap: 8px;
    position: relative;
    transition: background 0.3s;
    font-size: 14px;
}

.login-btn:hover {
    background-color: #4338ca;
}

.login-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.spinner {
    border: 3px solid #ffffff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.dashboard {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.sidebar {
    width: 260px;
    background-color: #1f2937;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid #374151;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo .logo-container {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
}

.sidebar-logo .logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-logo-text h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #ffffff;
}

.sidebar-logo-text p {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.2;
}

.sidebar-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    color: #d1d5db;
    position: relative;
}

.menu-item svg {
    width: 20px;
    height: 20px;
    fill: #9ca3af;
    flex-shrink: 0;
}

.menu-item span {
    font-size: 14px;
    font-weight: 500;
}

.menu-item.active {
    background-color: #4f46e5;
    color: #ffffff;
}

.menu-item.active svg {
    fill: #ffffff;
}

.menu-item:hover:not(.active) {
    background-color: #374151;
    color: #ffffff;
}

.menu-item:hover:not(.active) svg {
    fill: #d1d5db;
}

.main-content {
    flex: 1;
    padding: 30px;
    background-color: #899fb6;
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.logout-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background-color: #ef4444;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.logout-btn:hover {
    background-color: #dc2626;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-info {
    flex: 1;
}

.stat-header h3 {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon.blue {
    background-color: #dbeafe;
}

.stat-icon.blue svg {
    fill: #2563eb;
}

.stat-icon.green {
    background-color: #d1fae5;
}

.stat-icon.green svg {
    fill: #059669;
}

.stat-icon.purple {
    background-color: #e9d5ff;
}

.stat-icon.purple svg {
    fill: #8b5cf6;
}

.stat-icon.orange {
    background-color: #fed7aa;
}

.stat-icon.orange svg {
    fill: #ea580c;
}

.content-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.content-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0f172a;
}

.content-section p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.btn-delete {
    background-color: #dc2626 !important;
    color: white !important;
}

.btn-delete:hover {
    background-color: #b91c1c !important;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .login-card {
        padding: 30px 20px;
    }

    .login-card .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .login-card .logo-text {
        text-align: center;
    }
    
    .login-card .logo-container h1 {
        font-size: 24px;
    }
    
    .login-card .logo-icon {
        width: 70px; 
        height: 70px; 
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px 0;
    }

    .menu-item {
        flex-direction: column;
        padding: 10px 15px;
        min-width: 80px;
        text-align: center;
    }

    .menu-item span {
        font-size: 12px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.flex {
    display: flex;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0; 
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; 
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.activity-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.deletion-pending-badge {
    background: #fee2e2;
    color: #991b1b;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.btn-self-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 13px;
    text-decoration: none;
}

.btn-self-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-cancel-deletion {
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 13px;
    text-decoration: none;
}

.btn-cancel-deletion:hover {
    background: #059669;
    transform: translateY(-2px);
}
.current-user-badge {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}