/* ========================================
   Maktab Seminar - Main Stylesheet
   ======================================== */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --info-color: #4299e1;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Admin Sidebar */
.admin-sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 4px 12px;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

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

/* Admin Content */
.admin-content {
    padding: 30px;
}

/* Stats Cards */
.stat-card {
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stat-card.success {
    border-left-color: var(--success-color);
}

.stat-card.warning {
    border-left-color: var(--warning-color);
}

.stat-card.info {
    border-left-color: var(--info-color);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tables */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* QR Code Display */
.qr-code-container {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Poll Card */
.poll-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.poll-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.poll-buttons {
    display: flex;
    gap: 10px;
}

.poll-buttons .btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        min-height: auto;
    }
    
    .admin-content {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .poll-buttons {
        flex-direction: column;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Badge */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
}

/* Session Active Badge */
.session-active {
    display: inline-block;
    padding: 4px 12px;
    background: var(--success-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.session-inactive {
    display: inline-block;
    padding: 4px 12px;
    background: #cbd5e0;
    color: #4a5568;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* QR Scanner */
#qr-reader {
    border-radius: 12px;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #718096;
    font-size: 0.9rem;
}


