/* DSH My Bookings Styles */

.dsh-my-bookings {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dsh-dark);
    max-width: 600px; /* Mobile focused max width */
    margin: 0 auto;
    padding: 24px 16px 120px 16px; /* Padding bottom for navbar */
}

.dsh-my-bookings * {
    box-sizing: border-box;
}

/* Header */
.dsh-mb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dsh-mb-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--dsh-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dsh-mb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(193, 40, 49, 0.2);
}

.dsh-mb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Titles */
.dsh-section-head {
    margin-bottom: 24px;
}

.dsh-section-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--dsh-text-light);
    display: block;
    margin-bottom: 4px;
}

.dsh-section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dsh-dark);
    margin: 0;
}

/* Upcoming Card */
.dsh-upcoming-card {
    background: var(--dsh-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin-bottom: 48px;
    border: 1px solid var(--dsh-border);
    position: relative;
}

.dsh-upcoming-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--dsh-charity-gradient);
}

.dsh-upcoming-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.dsh-upcoming-content {
    padding: 24px;
}

.dsh-upcoming-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.dsh-upcoming-court {
    font-size: 20px;
    font-weight: 800;
    color: var(--dsh-primary);
    margin: 0;
}

.dsh-upcoming-badge {
    background: rgba(212, 168, 83, 0.2);
    color: var(--dsh-gold-dark);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dsh-upcoming-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.dsh-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dsh-text-light);
    font-size: 14px;
    font-weight: 500;
}

.dsh-upcoming-actions {
    display: flex;
    gap: 12px;
}

.dsh-btn-details {
    flex: 1;
    background: var(--dsh-charity-gradient);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(193, 40, 49, 0.2);
    transition: transform 0.2s;
}

.dsh-btn-details:active { transform: scale(0.96); }

.dsh-btn-cancel {
    background: var(--dsh-bg-light);
    border: 1px solid var(--dsh-border);
    color: var(--dsh-primary);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.dsh-btn-cancel:hover {
    background: var(--dsh-primary);
    color: white;
    border-color: var(--dsh-primary);
    box-shadow: 0 4px 12px rgba(193, 40, 49, 0.2);
}

.dsh-cancel-expired {
    background: rgba(0, 0, 0, 0.05);
    color: var(--dsh-text-light);
    font-size: 11px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--dsh-border);
}

/* History Section */
.dsh-history-year {
    font-size: 14px;
    font-weight: 800;
    color: var(--dsh-text-light);
    border-bottom: 1px solid var(--dsh-border);
    padding-bottom: 8px;
    margin-bottom: 16px;
    margin-top: 32px;
}

.dsh-history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dsh-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dsh-bg-light);
    padding: 16px;
    border-radius: 16px;
    transition: background 0.2s;
}

.dsh-history-item:hover {
    background: #f0f0f0;
}

.dsh-history-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dsh-history-icon {
    width: 48px;
    height: 48px;
    background: var(--dsh-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dsh-primary);
    opacity: 0.7;
}

.dsh-history-info h4 {
    margin: 0 0 2px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--dsh-dark);
}

.dsh-history-info p {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--dsh-text-light);
}

.dsh-history-right {
    text-align: right;
}

.dsh-history-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--dsh-dark);
    margin: 0 0 2px 0;
}

.dsh-history-status {
    font-size: 10px;
    font-weight: 800;
    color: var(--dsh-gold-dark);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

.dsh-history-item.inactive {
    filter: grayscale(0.5);
    opacity: 0.8;
}
