:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --input-focus: rgba(99, 102, 241, 0.3);
    --sidebar-bg: rgba(30, 41, 59, 0.7);
    --transition-speed: 0.3s;
}

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

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.background-radial {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.15), transparent 40%);
    z-index: -1;
}

.glass-container {
    width: 95vw;
    height: 90vh;
    max-width: 1200px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 260px 1fr;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Sidebar Styling */
.sidebar {
    background: rgba(15, 23, 42, 0.6);
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 50px;
}

.logo i {
    font-size: 28px;
    color: var(--primary-color);
}

.logo span {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.nav-links {
    list-style: none;
    flex: 1;
}

.nav-links li {
    margin-bottom: 12px;
}

.nav-links a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-speed);
}

.nav-links li:hover a {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-links li.active a {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.nav-links i {
    font-size: 18px;
}

.nav-copyright {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* Content Area */
.content {
    padding: 40px;
    overflow-y: auto;
    position: relative;
    scroll-behavior: smooth;
}

.tab-content {
    display: none;
    animation: fadeInSlide 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

.header-section {
    margin-bottom: 40px;
}

.header-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-section p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Form Styling */
.modern-form {
    max-width: 800px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input, 
.form-group select {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition-speed);
}

.form-group select option {
    background: #1e1b4b;
    color: #fff;
}

.form-group input:focus, 
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--input-focus);
}

.readonly-field {
    background: rgba(255, 255, 255, 0.02) !important;
    border-style: dashed !important;
    color: var(--accent-color) !important;
    cursor: default;
}

.form-group small {
    font-size: 11px;
    color: var(--text-secondary);
}

.form-divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
}

.form-divider::before, 
.form-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

.form-divider span {
    padding: 0 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.form-row {
    margin-bottom: 20px;
}

.form-actions {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.stat-icon.purple { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.stat-icon.blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.stat-icon.green { background: rgba(34, 197, 94, 0.2); color: #22c55e; }

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
}

.stat-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Table Styling */
.report-table-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.table-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.filter-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 10px;
    width: 100%;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: 0.2s;
}

.filter-group select:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

@media (max-width: 900px) {
    .filter-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .filter-bar {
        grid-template-columns: 1fr;
    }
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.scrollable-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--card-border);
}

td {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge.purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.badge.green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }

/* Animations */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast Styling */
#toastContainer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.toast {
    background: #1e293b;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    border-left: 4px solid var(--primary-color);
    animation: toastIn 0.3s ease forwards;
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .glass-container {
        grid-template-columns: 80px 1fr;
    }
    .sidebar span, .logo span { display: none; }
    .nav-links a { padding: 14px; justify-content: center; }
}

@media (max-width: 768px) {
    .glass-container {
        height: 100vh;
        width: 100vw;
        border-radius: 0;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    .sidebar {
        flex-direction: row;
        padding: 15px 20px;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
    }
    .logo { padding-bottom: 0; padding-right: 20px; }
    .nav-links { display: flex; flex: 1; justify-content: flex-end; gap: 10px; }
    .nav-links li { margin-bottom: 0; }
    .nav-copyright { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}
