/* ========================================
   Portal Cmevi - Design System
   Premium Medical Appointment System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables / Design Tokens ---- */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --secondary: #6366f1;
    --secondary-dark: #4f46e5;
    --accent: #10b981;
    --accent-dark: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, .07), 0 2px 4px -2px rgba(0, 0, 0, .05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -4px rgba(0, 0, 0, .05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .06);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, .15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all .25s cubic-bezier(.4, 0, .2, 1);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --gradient-hero: linear-gradient(135deg, #0c4a6e 0%, #1e1b4b 50%, #0c4a6e 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, .9) 0%, rgba(248, 250, 252, .95) 100%);
    --glass: rgba(255, 255, 255, .7);
    --glass-border: rgba(255, 255, 255, .3);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--surface-2);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font-family: var(--font);
    font-size: 1rem;
}

/* ---- Typography ---- */
h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ---- Layout ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 0.2rem 0;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 165, 233, .3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(14, 165, 233, .4);
    color: #fff;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

.btn-success {
    background: var(--accent);
    color: #fff;
}

.btn-success:hover {
    background: var(--accent-dark);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--danger-dark);
}

.btn-warning {
    background: var(--warning);
    color: #fff;
}

.btn-sm {
    padding: .4rem 1rem;
    font-size: .8rem;
}

.btn-lg {
    padding: .85rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
}

.btn-group {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* ---- Cards ---- */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    padding: 1.5rem;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 0.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-header h3 {
    margin: 0;
}

.card-body {
    padding: 0.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--surface-2);
}

/* Glass card */
.card-glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

/* Stat cards */
.stat-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.stat-card .stat-label {
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: .25rem;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: .875rem;
    color: var(--text-secondary);
    margin-bottom: .4rem;
}

.form-control {
    width: 100%;
    padding: .7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    transition: var(--transition);
    background: var(--surface);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-text {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .25rem;
}

.form-error {
    color: var(--danger);
    font-size: .8rem;
    margin-top: .25rem;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-group .btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---- Tables ---- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--surface-3);
}

th {
    padding: .85rem 1rem;
    text-align: left;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: .9rem;
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--primary-50);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .7rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-dark);
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #e0e7ff;
    color: #3730a3;
}

/* ---- Alerts ---- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    animation: slideDown .3s ease;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--accent);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: var(--primary-100);
    color: #075985;
    border-left: 4px solid var(--primary);
}

/* ---- Wizard Steps ---- */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.wizard-step .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--border);
    background: var(--surface);
    font-size: .85rem;
    transition: var(--transition);
}

.wizard-step.active .step-number {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(14, 165, 233, .3);
}

.wizard-step.completed .step-number {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.wizard-step.active {
    color: var(--primary);
    font-weight: 600;
}

.wizard-step.completed {
    color: var(--accent);
}

.wizard-connector {
    width: 40px;
    height: 2px;
    background: var(--border);
}

.wizard-connector.completed {
    background: var(--accent);
}

.wizard-step .step-label {
    display: none;
}

@media(min-width: 768px) {
    .wizard-step .step-label {
        display: block;
    }
}

/* ---- Selection Cards (Specialty/Doctor) ---- */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.selection-card {
    padding: 0.5rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    background: var(--surface);
    text-align: center;
    position: relative;
}

.selection-card:hover {
    border-color: var(--primary-light);
    background: var(--primary-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.selection-card.selected {
    border-color: var(--primary);
    background: var(--primary-50);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}

.selection-card .card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1.4rem;
}

.selection-card h4 {
    margin-bottom: .25rem;
}

.selection-card p {
    font-size: .85rem;
    color: var(--text-muted);
}

.selection-card .check-icon {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
}

.selection-card.selected .check-icon {
    display: flex;
}

/* ---- Time Slots ---- */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .75rem;
}

.time-slot {
    padding: .75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: .9rem;
}

.time-slot:hover {
    border-color: var(--primary-light);
    background: var(--primary-50);
}

.time-slot.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.time-slot.disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---- Hero Section ---- */
.hero {
    background: var(--gradient-hero);
    color: #fff;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, .15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: .5rem;
    position: relative;
}

.hero p {
    font-size: 1.1rem;
    opacity: .85;
    max-width: 600px;
    position: relative;
}

/* ---- Navbar ---- */
.navbar {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.navbar-brand i {
    color: var(--primary);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
}

.navbar-nav a {
    padding: .5rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: .9rem;
    transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--primary);
    background: var(--primary-50);
}

/* ---- Sidebar (Admin) ---- */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--gradient-hero);
    color: #fff;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 50;
    transition: var(--transition);
}

.sidebar-brand {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.sidebar-brand h2 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.sidebar-brand h2 i {
    color: var(--primary-light);
}

.sidebar-nav {
    padding: 1rem 0;
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1.5rem;
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav li a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.sidebar-nav li a.active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-left-color: var(--primary-light);
}

.sidebar-nav li a i {
    width: 20px;
    text-align: center;
}

.sidebar-section {
    padding: .5rem 1.5rem;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .35);
    margin-top: .5rem;
    font-weight: 700;
}

.admin-main {
    margin-left: 260px;
    flex: 1;
    min-width: 0;
}

.admin-topbar {
    height: 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: var(--shadow-sm);
}

.admin-topbar h2 {
    font-size: 1.1rem;
}

.admin-content {
    padding: 2rem;
}

/* ---- Grid utilities ---- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media(max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }
}

/* ---- Payment Info ---- */
.bank-info-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.bank-info-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.bank-info-row {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(14, 165, 233, .15);
}

.bank-info-row:last-child {
    border-bottom: none;
}

.bank-info-row .label {
    color: var(--text-muted);
    font-size: .9rem;
}

.bank-info-row .value {
    font-weight: 600;
    color: var(--text);
}

/* ---- File Upload ---- */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

.file-upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-100);
}

.file-upload-area i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

.file-upload-area p {
    color: var(--text-muted);
    font-size: .9rem;
}

/* ---- Confirmation / Print ---- */
.confirmation-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.confirmation-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 0rem;
    text-align: center;
}

.confirmation-header h2 {
    margin-bottom: .25rem;
}

.confirmation-body {
    padding: 2rem;
}

.confirmation-row {
    display: flex;
    padding: .75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.confirmation-row:last-child {
    border-bottom: none;
}

.confirmation-row .label {
    width: 180px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.confirmation-row .value {
    color: var(--text);
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn .2s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    animation: slideUp .3s ease;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: .25rem;
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.animate-in {
    animation: slideUp .4s ease;
}

.loading {
    animation: pulse 2s infinite;
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    gap: .25rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.pagination a,
.pagination span {
    padding: .5rem .85rem;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.pagination a:hover {
    background: var(--primary-50);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---- Footer ---- */
.footer {
    background: var(--text);
    color: rgba(255, 255, 255, .6);
    padding: 2rem 0;
    text-align: center;
    font-size: .85rem;
    margin-top: auto;
}

.footer a {
    color: var(--primary-light);
}

/* ---- Utility ---- */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--accent);
}

.text-danger {
    color: var(--danger);
}

.mt-1 {
    margin-top: .5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: .5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.d-flex {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    align-items: center;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: .5rem;
}

.gap-2 {
    gap: 1rem;
}

.hidden {
    display: none !important;
}

/* Print styles */
@media print {

    .navbar,
    .footer,
    .btn,
    .wizard-progress,
    .no-print {
        display: none !important;
    }

    .confirmation-card {
        border: none;
        box-shadow: none;
    }

    body {
        background: #fff;
    }
}

/* ---- Responsive Fixes ---- */
@media (max-width: 768px) {

    /* Wizard Progress */
    .wizard-progress {
        flex-wrap: wrap;
        gap: 10px;
        padding: 1rem 0;
    }

    .wizard-connector {
        display: none;
    }

    .wizard-step {
        padding: 0.25rem 0.5rem;
    }

    .wizard-step .step-label {
        display: block;
        font-size: 0.75rem;
    }

    /* Calendar Grid */
    .calendar-day-header span.full-day {
        display: none;
    }

    .calendar-day-header span.short-day {
        display: inline;
    }

    .calendar-grid>div {
        padding: 5px !important;
        font-size: 0.8rem;
    }

    .calendar-grid .status-text {
        font-size: 0.7rem !important;
        margin-top: 10px !important;
    }

    /* Modal Table to Stacked Layout */
    .modal-content {
        margin: 10% auto !important;
        width: 95% !important;
    }

    #bookingModal table thead {
        display: none;
    }

    #bookingModal table,
    #bookingModal tbody,
    #bookingModal tr,
    #bookingModal td {
        display: block;
        width: 100%;
    }

    #bookingModal tr {
        border: 1px solid #ddd;
        border-bottom: 2px solid #1e3a8a !important;
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
    }

    #bookingModal td {
        padding: 15px !important;
        box-sizing: border-box;
    }

    #bookingModal td:first-child {
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }
}

@media (min-width: 769px) {
    .calendar-day-header span.full-day {
        display: inline;
    }

    .calendar-day-header span.short-day {
        display: none;
    }
}