/* ==========================================================================
   Dean's Direct Line - System Styling
   College of Innovation and Management (วิทยาลัยนวัตกรรมและการจัดการ)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
    --primary-dark: #0f172a;
    --primary-blue: #1e3a8a;
    --accent-blue: #2563eb;
    --accent-light: #60a5fa;
    --gold-accent: #d97706;
    --gold-light: #fef3c7;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.12);
}

body {
    font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

main {
    flex: 1;
}

/* Header & Navigation */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
    padding: 0.85rem 0;
}

.navbar-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold-accent), #f59e0b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.brand-title {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.3px;
    line-height: 1.2;
    color: #ffffff;
}

.brand-subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    padding: 0.6rem 1.2rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.9)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 3.5rem 0 4rem;
    margin-bottom: -2.5rem;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #3b82f6, #10b981);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin: 0 auto;
}

/* Custom Glass Cards */
.card-custom {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card-custom-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 1.75rem;
}

.card-custom-body {
    padding: 1.75rem;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.file-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-dropzone:hover, .file-dropzone.dragover {
    border-color: var(--accent-blue);
    background: #eff6ff;
}

.file-dropzone-icon {
    font-size: 2.2rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

/* Anonymous Switch Card */
.anonymous-toggle-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Timeline Components */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.timeline-item.active .timeline-marker {
    background: var(--accent-blue);
}

.timeline-item.completed .timeline-marker {
    border-color: #10b981;
    background: #10b981;
}

.timeline-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-accent), #f59e0b);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #b45309, var(--gold-accent));
    color: #ffffff;
    transform: translateY(-1px);
}

/* Ticket Summary Card */
.ticket-summary-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.ticket-code-display {
    font-family: 'Inter', monospace;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fbbf24;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    display: inline-block;
    border: 1px dashed rgba(251, 191, 36, 0.5);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
    font-size: 0.9rem;
    border-top: 4px solid var(--gold-accent);
}

footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Admin Dashboard Specifics */
.stat-card {
    border-radius: var(--radius-md);
    padding: 1.5rem;
    color: #ffffff;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.25 ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card-total { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-card-pending { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card-progress { background: linear-gradient(135deg, #0284c7, #0369a1); }
.stat-card-resolved { background: linear-gradient(135deg, #10b981, #047857); }

.stat-num {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}
