/* ==========================================================================
   Website Admin CMS & Online Admissions Stylesheet
   Design system consistent with MediCall BD Academic Module
   ========================================================================== */

.website-admin-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    color: #0f172a;
    margin-bottom: 30px;
}

/* Page Header */
.admin-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: transparent;
    margin-bottom: 2px;
}

.admin-header-info {
    max-width: 680px;
}

.admin-header-info .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1e3a8a;
    margin-bottom: 4px;
}

.admin-header-info h1 {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.02em !important;
}

.admin-header-info p {
    font-size: 14px !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Primary & Secondary Action Buttons (MediCall BD Standard) */
.btn-admin-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 9px 18px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.22) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    touch-action: manipulation !important;
    white-space: nowrap !important;
}

.btn-admin-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32) !important;
    color: #ffffff !important;
}

.btn-admin-primary:active {
    transform: translateY(0) scale(0.98) !important;
}

.btn-admin-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
}

.btn-admin-secondary:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08) !important;
}

.btn-admin-secondary:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Subtle Colored Variants for Secondary Buttons */
.btn-admin-subtle-blue {
    background: #eff6ff !important;
    color: #1e40af !important;
    border-color: #bfdbfe !important;
}
.btn-admin-subtle-blue:hover {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    color: #1e3a8a !important;
}

.btn-admin-subtle-teal {
    background: #f0fdfa !important;
    color: #0f766e !important;
    border-color: #99f6e4 !important;
}
.btn-admin-subtle-teal:hover {
    background: #ccfbf1 !important;
    border-color: #5eead4 !important;
    color: #115e59 !important;
}

.btn-admin-teal {
    background: #ffffff !important;
    color: #0f766e !important;
    border: 1px solid #ccfbf1 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.btn-admin-teal:hover {
    background: #f0fdfa !important;
    border-color: #99f6e4 !important;
    color: #115e59 !important;
}

.btn-admin-sky {
    background: #ffffff !important;
    color: #0284c7 !important;
    border: 1px solid #e0f2fe !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.btn-admin-sky:hover {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #0369a1 !important;
}

/* Horizontal Sub-Tab Strip (Sticky Card) */
.admin-tab-strip-wrap {
    position: sticky;
    top: 56px;
    z-index: 25;
    background: #ffffff !important;
    margin: 0 0 10px 0 !important;
    padding: 6px 10px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-tab-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0;
    flex: 1;
}

.admin-tab-strip::-webkit-scrollbar {
    display: none;
}

.admin-tab-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
    touch-action: manipulation !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

.admin-tab-btn i {
    font-size: 13px;
    color: #64748b;
    transition: color 0.15s ease;
}

.admin-tab-btn:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}

.admin-tab-btn:hover i {
    color: #1e3a8a !important;
}

.admin-tab-btn.active {
    color: #ffffff !important;
    background: #1e3a8a !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.22) !important;
}

.admin-tab-btn.active i {
    color: #ffffff !important;
}

/* Tab Content Visibility */
.admin-tab-pane {
    display: none !important;
}

.admin-tab-pane.active {
    display: block !important;
    animation: fadeInPane 0.18s ease-in-out;
}

@keyframes fadeInPane {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards & Containers */
.admin-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
    padding: 22px !important;
    margin-bottom: 18px !important;
}

.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.admin-card-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.admin-card-title i {
    color: #1e3a8a;
}

.admin-card-desc {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
}

/* Form Grid & Elements */
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-field.col-span-full {
    grid-column: 1 / -1;
}

.admin-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.admin-input,
.admin-select,
.admin-textarea {
    width: 100% !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    padding: 9px 13px !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
    border-color: #247cff !important;
    box-shadow: 0 0 0 3px rgba(36, 124, 255, 0.15) !important;
}

.admin-hint {
    font-size: 12px;
    color: #64748b;
}

/* Dynamic Item Cards (Slides, Trades, Gallery, Emergency) */
.admin-item-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    position: relative;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-item-box:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.admin-item-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.admin-item-badge {
    font-size: 12px;
    font-weight: 700;
    color: #1e3a8a;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-item-delete {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-item-delete:hover {
    background: #fee2e2;
    color: #991b1b;
}

/* Stat Cards Strip */
.admin-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
}

.admin-stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.admin-stat-card:hover {
    border-color: #cbd5e1 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07) !important;
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.admin-stat-card:hover .admin-stat-icon {
    transform: scale(1.08);
}

.admin-stat-icon.total { background: #eff6ff; color: #1e40af; border: 1px solid #dbeafe; }
.admin-stat-icon.pending { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.admin-stat-icon.approved { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.admin-stat-icon.rejected { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.admin-stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.admin-stat-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Filter Toolbar */
.admin-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    margin-bottom: 18px;
}

/* Table Card */
.admin-table-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
}

.admin-table {
    width: 100% !important;
    border-collapse: collapse !important;
    text-align: left !important;
    background: #ffffff !important;
    margin: 0 !important;
}

.admin-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 13px 18px !important;
    border-bottom: 1px solid #e5e7eb !important;
    white-space: nowrap !important;
}

.admin-table td {
    padding: 14px 18px !important;
    font-size: 13.5px !important;
    color: #334155 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
}

.admin-table tr:hover td {
    background: #f8fafc !important;
}

/* Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: capitalize;
}

.badge-status.pending { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.badge-status.approved { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-status.rejected { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Icon Actions */
.btn-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    color: #475569;
}

.btn-action-icon:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.btn-action-icon.view { color: #0284c7; background: #f0f9ff; border-color: #bae6fd; }
.btn-action-icon.view:hover { background: #e0f2fe; }
.btn-action-icon.approve { color: #059669; background: #ecfdf5; border-color: #a7f3d0; }
.btn-action-icon.approve:hover { background: #d1fae5; }
.btn-action-icon.reject { color: #d97706; background: #fffbeb; border-color: #fde68a; }
.btn-action-icon.reject:hover { background: #fef3c7; }
.btn-action-icon.delete { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.btn-action-icon.delete:hover { background: #fee2e2; }

/* Modal Dialog */
.admin-modal-dialog {
    padding: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25) !important;
    max-width: 600px !important;
    width: 90% !important;
    background: #ffffff !important;
    color: #0f172a !important;
    overflow: hidden !important;
    margin: auto !important;
}

.admin-modal-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(2px) !important;
}

.admin-modal-header {
    padding: 16px 20px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.admin-modal-body {
    padding: 20px !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.admin-modal-footer {
    padding: 14px 20px !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

/* Alert Notification Banner */
.admin-alert-success {
    background: #ecfdf5 !important;
    border-left: 4px solid #10b981 !important;
    color: #065f46 !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    font-size: 13.5px !important;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .admin-page-header {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .admin-header-actions {
        width: 100%;
    }
    .admin-tab-strip-wrap {
        top: 50px !important;
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================================================
   Website Themes & Presets Gallery Styles
   ========================================================================== */
.theme-preset-card {
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    background: #FFFFFF;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    position: relative;
}
.theme-preset-card:hover {
    border-color: #93C5FD;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}
.theme-preset-card.active {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 10px 28px rgba(37, 99, 235, 0.18) !important;
}

.theme-card-banner {
    height: 105px;
    position: relative;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.theme-banner-mockup {
    width: 82%;
    height: 72px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mockup-topbar {
    height: 10px;
    width: 100%;
}
.mockup-header {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    gap: 6px;
}
.mockup-logo {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}
.mockup-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5px;
}
.mockup-lines .line.title {
    height: 4.5px;
    width: 60%;
    background: #0F172A;
    border-radius: 2px;
}
.mockup-lines .line.sub {
    height: 3.5px;
    width: 40%;
    background: #94A3B8;
    border-radius: 2px;
}
.mockup-navbar {
    height: 12px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
}
.mockup-navbar .dot {
    width: 8px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
}
.mockup-navbar .dot.active {
    width: 14px;
}

.theme-tag-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.theme-active-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #10B981;
    color: #FFFFFF;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

.theme-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.theme-card-header-row {
    margin-bottom: 6px;
}
.theme-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}
.theme-card-sub {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748B;
}

.theme-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #F1F5F9;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin: 6px 0 10px 0;
    width: fit-content;
}

.theme-desc {
    font-size: 12.5px;
    color: #475569;
    margin: 0 0 14px 0;
    line-height: 1.45;
    flex: 1;
}

.theme-palette-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 10px;
    background: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}
.palette-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
}
.swatch-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.swatch-lbl {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
}

.theme-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-theme-select {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    border: 1.5px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-theme-select:hover {
    border-color: #2563EB;
    color: #2563EB;
    background: #EFF6FF;
}
.btn-theme-select.btn-active {
    border-color: #10B981 !important;
    background: #ECFDF5 !important;
    color: #047857 !important;
    font-weight: 800 !important;
}
.btn-theme-preview {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    border: 1.5px solid #E2E8F0;
    background: #F8FAFC;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
}
.btn-theme-preview:hover {
    background: #E2E8F0;
    color: #0F172A;
}


