﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
    /* penghor.com - Premium Midnight Glass Theme */
    --primary-color: #6366f1; /* Indigo 500 */
    --primary-hover: #818cf8; /* Indigo 400 */
    --primary-glow: rgba(99, 102, 241, 0.25);
    
    --secondary-color: #06b6d4; /* Cyan 500 */
    --secondary-hover: #22d3ee; /* Cyan 400 */
    
    --bg-dark: #12141d; /* Matches the new image main bg */
    --bg-sidebar: #1a1c26; /* Matches the new image sidebar */
    --bg-card: #1f212e;
    --bg-card-hover: #272a38;
    
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    --text-dark: #0f172a;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    --success: #10b981;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --glass-blur: blur(20px);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Hind Siliguri', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    /* Subtle background glow effects */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08), transparent 25%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Auth Layout */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bg-dark);
}

.auth-left {
    flex: 1.2;
    background: radial-gradient(circle at top right, var(--primary-glow), transparent), linear-gradient(135deg, #07090e, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-right: 1px solid var(--border-color);
}

.auth-right {
    flex: 1;
    background: #0b0e16;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

/* Layout Wrapper for Authenticated Screens */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Styling */
.app-sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    padding: 24px 16px;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    display: flex;
    flex-direction: column;
    color: var(--text-main);
    text-decoration: none;
    margin-bottom: 40px;
    padding-left: 8px;
}

.sidebar-logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-logo-title .text-gradient {
    background: linear-gradient(135deg, #a5b4fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-top: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sidebar-link i {
    font-size: 1.3rem;
    transition: color 0.2s ease;
}

.sidebar-link:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.03);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.sidebar-link.active i {
    color: #fff;
}

.sidebar-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin: 24px 0 10px 18px;
    font-weight: 700;
}

.sidebar-user {
    margin-top: auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #2d3748;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    object-fit: cover;
}

/* Main Content Area */
.app-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.top-navbar {
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background-color: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 90;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.8rem;
}

.credit-badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-hover);
    font-size: 0.95rem;
    box-shadow: 0 2px 10px var(--primary-glow);
    transition: all 0.3s ease;
    margin-left: auto;
}

.credit-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
    background: rgba(99, 102, 241, 0.15);
}

.content-body {
    padding: 40px;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Modern Card/Glass Container */
.glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.glass::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.glass-interactive {
    cursor: pointer;
}

.glass-interactive:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px var(--primary-glow);
    background: var(--bg-card-hover);
}

/* Inputs & Form Controls */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-decoration: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Grid & Layout Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Gradient Text Utility */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Mobile Responsiveness */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999;
}

/* Utilities */
.container {
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .app-sidebar, .admin-sidebar {
        transform: none !important;
        left: -320px;
        transition: left 0.3s ease;
    }
    .app-sidebar.active, .admin-sidebar.active {
        transform: none !important;
        left: 0;
    }
    .app-content {
        margin-left: 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    .top-navbar {
        padding: 0 20px;
    }
    .content-body {
        padding: 20px;
    }
    .mobile-overlay.active {
        display: block;
    }
    .auth-wrapper {
        flex-direction: column;
    }
    .auth-left {
        padding: 40px 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr !important;
    }
    
    .glass {
        padding: 20px;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* Modern Table Styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 10px 0;
    color: var(--text-main);
    text-align: left;
}

.table th {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.table th:first-child { border-top-left-radius: 8px; }
.table th:last-child { border-top-right-radius: 8px; }

.table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 0.95rem;
}

.table tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

