/* Premium Styles for User Dashboard */
.dashboard-section {
    background-color: #f8fafc;
    padding: 60px 0;
    min-height: 80vh;
}

.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .dashboard-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Sidebar Styling */
.dashboard-sidebar {
    width: 100%;
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(17, 15, 15, 0.02);
    padding: 30px 20px;
    position: sticky;
    top: 100px;
    z-index: 10;
}

@media (min-width: 992px) {
    .dashboard-sidebar {
        width: 280px;
        flex-shrink: 0;
    }
}

.sidebar-profile {
    text-align: center;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1.5px solid #f1f5f9;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background-color: rgba(254, 81, 0, 0.08);
    color: var(--primary-color1, #fe5100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 32px;
    font-weight: 700;
    border: 2px solid rgba(254, 81, 0, 0.15);
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--black-color, #110F0F);
    margin-bottom: 4px;
}

.profile-email {
    font-size: 13px;
    color: #64748b;
    word-break: break-all;
}

/* Sidebar Nav */
.sidebar-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) and (max-width: 991px) {
    .sidebar-menu {
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .sidebar-menu {
        flex-direction: column;
    }
}

.sidebar-menu-item {
    width: auto;
}

@media (min-width: 992px) {
    .sidebar-menu-item {
        width: 100%;
    }
}

.sidebar-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    border-radius: 10px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-menu-btn i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.sidebar-menu-btn:hover {
    color: var(--primary-color1, #fe5100);
    background-color: rgba(254, 81, 0, 0.04);
}

.sidebar-menu-btn:hover i {
    transform: translateX(2px);
}

.sidebar-menu-btn.active {
    color: #ffffff;
    background-color: var(--primary-color1, #fe5100);
    box-shadow: 0 4px 12px rgba(254, 81, 0, 0.2);
}

.sidebar-menu-btn.active:hover {
    background-color: var(--primary-color2, #d85d0b);
}

.sidebar-menu-btn.logout-btn:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.sidebar-menu-btn.logout-btn:hover i {
    transform: translateX(3px);
}

/* Content Area */
.dashboard-content {
    flex: 1;
    width: 100%;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

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

/* Section Header */
.content-header {
    margin-bottom: 25px;
}

.content-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--black-color, #110F0F);
    margin-bottom: 6px;
}

.content-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 576px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stats-card {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(17, 15, 15, 0.01);
}

.stats-info h4 {
    font-size: 28px;
    font-weight: 700;
    color: var(--black-color, #110F0F);
    margin-bottom: 4px;
}

.stats-info span {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stats-icon.blue {
    background-color: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}

.stats-icon.orange {
    background-color: rgba(254, 81, 0, 0.08);
    color: var(--primary-color1, #fe5100);
}

.stats-icon.green {
    background-color: rgba(34, 197, 94, 0.08);
    color: #22c55e;
}

/* Dashboard Panel Cards */
.panel-card {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(17, 15, 15, 0.01);
    margin-bottom: 25px;
}

/* Forms in Dashboard */
.db-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .db-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.db-form-group {
    text-align: left;
}

.db-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--black-color, #110F0F);
    margin-bottom: 8px;
}

.db-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background-color: #ffffff;
    color: var(--black-color, #110F0F);
    outline: none;
    transition: all 0.2s ease;
}

.db-control:focus {
    border-color: var(--primary-color1, #fe5100);
    box-shadow: 0 0 0 4px rgba(254, 81, 0, 0.08);
}

.db-control:disabled {
    background-color: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.btn-db-save {
    background-color: var(--primary-color1, #fe5100);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(254, 81, 0, 0.15);
    transition: all 0.2s ease;
}

.btn-db-save:hover {
    background-color: var(--primary-color2, #d85d0b);
    transform: translateY(-1px);
}

/* Booking Cards */
.booking-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-card {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(17, 15, 15, 0.01);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.booking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(17, 15, 15, 0.03);
}

@media (min-width: 768px) {
    .booking-card {
        flex-direction: row;
    }
}

.booking-image {
    width: 100%;
    height: 180px;
    background-color: #f1f5f9;
    position: relative;
}

@media (min-width: 768px) {
    .booking-image {
        width: 220px;
        height: auto;
        min-height: 100%;
        flex-shrink: 0;
    }
}

.booking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

.booking-ref {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black-color, #110F0F);
    margin-bottom: 8px;
}

.booking-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.booking-detail-item {
    font-size: 13px;
    color: #475569;
}

.booking-detail-item span {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.booking-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1.5px solid #f1f5f9;
    padding-top: 15px;
    margin-top: auto;
}

.booking-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--black-color, #110F0F);
}

.booking-price span {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    display: block;
}

.btn-view-details {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    background-color: #f1f5f9;
    color: #334155;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-details:hover {
    background-color: var(--primary-color1, #fe5100);
    color: #ffffff;
}

/* Badges */
.badge-status {
    display: inline-block;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-status.paid {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.badge-status.pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge-status.confirmed {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.badge-status.completed {
    background-color: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.badge-status.cancelled {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-icon {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--black-color, #110F0F);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.btn-explore {
    display: inline-block;
    background-color: var(--primary-color1, #fe5100);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.btn-explore:hover {
    background-color: var(--primary-color2, #d85d0b);
}

/* Modal Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 15, 15, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-container {
    background-color: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(17, 15, 15, 0.15);
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1.5px solid #f1f5f9;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black-color, #110F0F);
}

.btn-modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
}

.btn-modal-close:hover {
    color: var(--primary-color1, #fe5100);
}

.modal-body {
    padding: 24px;
}

.receipt-section {
    margin-bottom: 20px;
    border-bottom: 1.5px dashed #e2e8f0;
    padding-bottom: 20px;
    text-align: left;
}

.receipt-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.receipt-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
}

.receipt-row.total-row {
    font-size: 16px;
    font-weight: 700;
    color: var(--black-color, #110F0F);
    margin-top: 12px;
}

.receipt-addon-item {
    font-size: 13px;
    color: #64748b;
    padding-left: 10px;
    position: relative;
    margin-bottom: 4px;
}

.receipt-addon-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color1, #fe5100);
}

/* Overview Shortcuts Grid */
.shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 10px;
}

@media (min-width: 768px) {
    .shortcuts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.shortcut-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.shortcut-card:hover {
    background-color: #ffffff;
    border-color: var(--primary-color1, #fe5100);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(254, 81, 0, 0.05);
}

.shortcut-icon {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.shortcut-details {
    flex-grow: 1;
    margin-left: 15px;
    margin-right: 10px;
}

.shortcut-details h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--black-color, #110F0F);
}

.shortcut-details p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.shortcut-arrow {
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.shortcut-card:hover .shortcut-arrow {
    color: var(--primary-color1, #fe5100);
    transform: translateX(3px);
}

/* Booking Filters styling */
.booking-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.booking-filter-btn {
    border: 1px solid transparent;
    background: transparent;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-filter-btn:hover {
    color: var(--primary-color1, #fe5100);
    background-color: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.booking-filter-btn.active {
    background-color: #ffffff;
    color: var(--primary-color1, #fe5100);
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-count {
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    transition: all 0.25s ease;
}

.filter-count.bg-secondary {
    background-color: rgba(100, 116, 139, 0.1) !important;
    color: #475569 !important;
}

.filter-count.bg-warning {
    background-color: rgba(254, 152, 0, 0.1) !important;
    color: #ff9800 !important;
}

.filter-count.bg-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
}

.filter-count.bg-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

/* Payments Table styling */
.db-payments-table th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    padding: 12px 16px;
}

.db-payments-table td {
    padding: 16px;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
}

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

.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-badge.success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.payment-badge.refunded {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* Medical clearance styling */
.medical-status-banner {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid transparent;
}

.medical-status-banner.verified {
    background-color: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
    color: #14532d;
}

.medical-status-banner.pending {
    background-color: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.2);
    color: #78350f;
}

.status-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.medical-status-banner.verified .status-icon-wrap {
    background-color: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.medical-status-banner.pending .status-icon-wrap {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.medical-status-banner p {
    font-size: 13px;
    opacity: 0.9;
}

/* Document download styling */
.doc-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background-color: #ffffff;
}

.mock-upload-box {
    transition: all 0.2s ease;
    border-color: #cbd5e1 !important;
}

.mock-upload-box:hover {
    border-color: var(--primary-color1, #fe5100) !important;
    background-color: rgba(254, 81, 0, 0.01) !important;
}
