/* Dashboard Styles */
.user-dashboard-container {
    display: flex;
    max-width: 1300px;
    width: calc(100% - 40px);
    margin: 40px auto;
    background: #f8fbff;
    border-radius: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    min-height: 700px;
}

/* Sidebar */
.dashboard-sidebar {
    width: 300px;
    min-width: 280px;
    background: #fff;
    padding: 40px 20px;
    border-left: 1px solid #eee;
    flex-shrink: 0;
}

.user-profile-summary {
    text-align: center;
    margin-bottom: 40px;
}

.user-avatar img {
    border-radius: 50%;
    border: 4px solid #f0f7f8;
    margin-bottom: 15px;
}

.user-profile-summary h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #2c3e50;
}

.user-profile-summary p {
    font-size: 0.9rem;
    color: #888;
}

.dashboard-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-nav li {
    margin-bottom: 8px;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: #666;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    gap: 12px;
}

.dashboard-nav li.active a,
.dashboard-nav a:hover {
    background: #eef9fa;
    color: #25adb9;
}

.dashboard-nav i {
    font-size: 1.1rem;
    width: 20px;
}

.badge,
.badge-alert {
    margin-right: auto;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.badge {
    background: #f0f3f4;
    color: #777;
}

.badge-alert {
    background: #ff4757;
    color: #fff;
}

.logout-link {
    color: #ff4757 !important;
    margin-top: 20px;
}

.logout-link:hover {
    background: #fff5f6 !important;
}

/* Content Area */
.dashboard-content {
    flex: 1;
    min-width: 0;
    padding: 40px;
    background: #f8fbff;
}

.dashboard-header {
    margin-bottom: 35px;
}

.dashboard-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.dashboard-header p {
    color: #888;
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.stat-icon {
    width: 55px;
    height: 55px;
    background: #eef9fa;
    color: #25adb9;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.icon-red {
    background: #fff2f3;
    color: #ff4757;
}

.stat-icon.icon-yellow {
    background: #fff9ea;
    color: #ffa502;
}

.stat-info h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
}

.stat-info .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.section-card {
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.section-card h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Booking Card */
.booking-mini-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    padding: 20px 25px;
    border-radius: 12px;
    gap: 15px;
    flex-wrap: wrap;
}

.booking-mini-card .b-info {
    flex: 1;
    min-width: 200px;
}

.booking-mini-card .b-info strong {
    display: block;
    color: #25adb9;
    font-size: 1rem;
    margin-bottom: 5px;
}

.booking-mini-card .b-info span {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

.booking-mini-card .b-date {
    color: #888;
    font-size: 0.85rem;
    white-space: nowrap;
}

.booking-mini-card .b-status {
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.booking-mini-card .btn-sm {
    background: #25adb9;
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.booking-mini-card .btn-sm:hover {
    background: #1e9aa5;
}

.status-pending_review {
    background: #fff9ea;
    color: #ffa502;
}

.status-confirmed {
    background: #eef9fa;
    color: #25adb9;
}

.status-completed {
    background: #e7f9ee;
    color: #2ecc71;
}

.status-cancelled {
    background: #fff2f3;
    color: #ff4757;
}

/* Table */
.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table th {
    text-align: right;
    padding: 15px;
    color: #888;
    border-bottom: 2px solid #f0f0f0;
}

.dash-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.status-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.view-booking-btn {
    border: none;
    background: #eef9fa;
    color: #25adb9;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Notifications */
.notif-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item.unread {
    border-right: 4px solid #ffa502;
    padding-right: 15px;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.notif-date {
    font-size: 0.8rem;
    color: #aaa;
}

.notif-body {
    color: #555;
    line-height: 1.6;
}

/* Profile Form */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fbfbfb;
}

.btn-primary {
    background: #25adb9;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.alert-success {
    background: #e7f9ee;
    color: #2ecc71;
    border: 1px solid #d5f5e3;
}

.alert-danger {
    background: #fff2f3;
    color: #ff4757;
    border: 1px solid #ffd4d7;
}

@media (max-width: 991px) {
    .user-dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #eee;
    }

    .dash-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Custom Styles */
.dashboard-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #ff4757;
}

.modal-body {
    padding: 30px;
}

.booking-details-loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.booking-details-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

/* Custom Booking Details Styles for Frontend */
.dashboard-modal .booking-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dashboard-modal .booking-field {
    background: #f8fbff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eef4f8;
}

.dashboard-modal .booking-field label {
    font-weight: 700;
    color: #7f8c8d;
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.dashboard-modal .booking-field .value {
    font-size: 1.05rem;
    color: #25adb9;
    font-weight: 600;
}

.dashboard-modal .booking-number {
    background: #25adb9;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Support System Styles */
.header-flex {
    margin-bottom: 20px;
}

.tickets-list .empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
}

.tickets-list .empty-state i {
    font-size: 3rem;
    color: #d1d8dd;
    margin-bottom: 15px;
    display: block;
}

.ticket-header-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.ticket-header-details h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.ticket-chat-box {
    background: #f8fbff;
    padding: 20px;
    border-radius: 12px;
    height: 350px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #eef4f8;
}

.resala {
    margin-bottom: 20px;
    max-width: 80%;
    clear: both;
}

.resala.user-msg {
    float: right;
}

.resala.admin-msg {
    float: left;
}

.resala .msg-meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
}

.resala.user-msg .msg-content {
    background: #25adb9;
    color: white;
    padding: 12px 18px;
    border-radius: 12px 0 12px 12px;
}

.resala.admin-msg .msg-content {
    background: white;
    color: #444;
    padding: 12px 18px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.reply-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    height: 80px;
    margin-bottom: 10px;
    font-family: inherit;
}

.tickets-list .status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-open {
    background: #e3f2fd;
    color: #2196f3;
}

.status-answered {
    background: #e8f5e9;
    color: #4caf50;
}

.status-closed {
    background: #ffebee;
    color: #f44336;
}