/* ============================================================
   Student Ticketing System — Custom Styles
   ============================================================ */

:root {
    --sidebar-width: 240px;
    --navbar-height: 56px;
    --primary: #0d6efd;
    --dark: #212529;
}

/* Layout */
body {
    background: #f0f2f5;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9rem;
}

.wrapper {
    min-height: 100vh;
    padding-top: var(--navbar-height);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-height: calc(100vh - var(--navbar-height));
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    z-index: 100;
    overflow-y: auto;
    transition: width .3s ease;
}

.sidebar .nav-link {
    color: #adb5bd;
    border-radius: 6px;
    padding: .45rem .75rem;
    font-size: .875rem;
    transition: background .2s, color .2s;
}

.sidebar .nav-link:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.sidebar .nav-link.active {
    background: var(--primary);
    color: #fff;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--navbar-height));
    transition: margin-left .3s ease;
}

/* Avatar Circle */
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: .85rem;
}

/* Dashboard Stats Cards */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    transition: transform .2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

/* Ticket Timeline */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: .6rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.05rem;
    top: .35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item .timeline-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: .75rem 1rem;
}

/* Table styles */
.table-hover tbody tr:hover {
    background-color: #f0f4ff;
}

/* Badges */
.badge {
    font-weight: 500;
    font-size: .78rem;
    padding: .35em .65em;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}

/* Login page */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    width: 100%;
    max-width: 420px;
}

.login-logo {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin: 0 auto 1.5rem;
}

.captcha-box {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: monospace;
    letter-spacing: 2px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    .sidebar.show {
        width: var(--sidebar-width);
    }
    .main-content {
        margin-left: 0;
    }
}

/* Print styles */
@media print {
    .sidebar, .navbar, .btn, .alert, nav, .no-print {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    body {
        background: #fff !important;
        font-size: 12pt;
    }
    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 1.5rem;
    }
}

.print-header { display: none; }
