/* ==========================================================
   Calling Dashboard Custom Styles
   ========================================================== */

:root {
    --primary-color: #1d4ed8;
    --primary-hover: #1e40af;
    --primary-light: #eff6ff;
    --secondary-color: #475569;
    --accent-color: #059669;
    --bg-main: #f8fafc;
    --card-border: #e2e8f0;
}

body {
    font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-main);
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Prompt', 'Sarabun', sans-serif;
    font-weight: 600;
}

/* Search Box Pill Styling */
.search-box-pill {
    transition: all 0.25s ease-in-out;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1 !important;
    border-radius: 50rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.search-box-pill:focus-within {
    background-color: #ffffff;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.18);
}

.search-box-pill input {
    font-size: 0.92rem;
}

.search-box-pill input::placeholder {
    color: #94a3b8;
    font-size: 0.88rem;
}

.search-box-pill button.btn-link {
    text-decoration: none;
    color: #94a3b8;
    transition: color 0.15s ease;
}

.search-box-pill button.btn-link:hover {
    color: #ef4444;
}

/* Card Styling */
.position-card {
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    background: #ffffff;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.position-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

/* Admin Card Border Accent */
.admin-card {
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.admin-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.15);
}

/* Queue Highlight Box */
.queue-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0eefe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 0.85rem;
    padding: 1.15rem 1rem;
    text-align: center;
}

.queue-number {
    font-family: 'Prompt', sans-serif;
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1;
    color: #1e40af;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(30, 64, 175, 0.1);
}

.queue-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.35rem;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3730a3 100%);
    border-radius: 1.5rem;
    padding: 2.25rem 2rem;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Pulse animation for live status */
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Upload Dropzone styling */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    background-color: #eff6ff;
    border-color: #3b82f6;
}

/* Custom Badges */
.badge-custom-pdf {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-weight: 500;
}

.badge-custom-wait {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    font-weight: 500;
}

/* Navigation bar */
.main-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 0;
}

/* Table refinements */
.table-custom {
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 1rem;
}

.table-custom td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

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

/* Modal styling */
.modal-content {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
}

/* Footer */
footer {
    margin-top: auto;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: #64748b;
}
