* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    color: #2c3e50;
    min-height: 100vh;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 80px 0;
    min-height: 400px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.category-card {
    border: none;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 20px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.btn-home {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    transition: all 0.3s;
    margin: 8px;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e293b 100%);
    color: white;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: all 0.3s;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
}

.sidebar-menu {
    list-style: none;
    padding: 15px 0;
}

.sidebar-menu li a {
    display: block;
    padding: 14px 25px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(255,255,255,0.08);
    color: white;
    border-left-color: #3b82f6;
}

.sidebar-menu li a i {
    width: 25px;
    margin-right: 10px;
}

.main-content {
    margin-left: 250px;
    flex: 1;
    min-height: 100vh;
}

.top-nav {
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.content-area {
    padding: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 5px;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.card-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 16px 16px 0 0 !important;
    padding: 20px;
    font-weight: 600;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f8fafc;
}

.badge {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-card h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e293b;
    font-weight: 700;
}

.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59,130,246,0.3);
}

.btn {
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 500;
    border: none;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.ticket-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.ticket-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.ticket-number {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin: 10px 0;
}

.ticket-body {
    padding: 30px;
    border-bottom: 2px dashed #cbd5e1;
    position: relative;
}

.ticket-footer {
    padding: 20px 30px;
    background: #f8fafc;
    text-align: center;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ticket-row:last-child {
    border-bottom: none;
}

.ticket-label {
    color: #64748b;
    font-weight: 500;
}

.ticket-value {
    font-weight: 600;
    color: #1e293b;
}

.status-display {
    background: white;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.now-serving {
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.current-number {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
}

.modal-content {
    border: none;
    border-radius: 20px;
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 25px;
    border-radius: 20px 20px 0 0;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 0 0 20px 20px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 25px;
}

.footer-public {
    background: #1e293b;
    color: rgba(255,255,255,0.7);
    padding: 30px 0;
    margin-top: 60px;
}

.queue-position {
    font-size: 4rem;
    font-weight: 800;
    color: #1e3a8a;
}

.qr-code {
    text-align: center;
    margin: 20px 0;
}

.qr-code img {
    border: 8px solid white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    .sidebar-header h5,
    .sidebar-menu li a span {
        display: none;
    }
    .sidebar-menu li a i {
        margin-right: 0;
        text-align: center;
        display: block;
    }
    .main-content {
        margin-left: 70px;
    }
    .content-area {
        padding: 20px 15px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .ticket-number {
        font-size: 2.5rem;
    }
    .current-number {
        font-size: 4rem;
    }
    .queue-position {
        font-size: 2.5rem;
    }
    .top-nav {
        padding: 12px 15px;
    }
}

@media print {
    .sidebar,
    .top-nav,
    .no-print,
    .btn {
        display: none !important;
    }
    .main-content {
        margin-left: 0;
    }
    body {
        background: white;
    }
    .ticket-card {
        box-shadow: none;
        border: 2px solid #e2e8f0;
    }
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
    70% { box-shadow: 0 0 0 20px rgba(59,130,246,0); }
    100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}

.pulse {
    animation: pulse-border 1.5s infinite;
}
