/* Amelia My Schedule Styles - Premium Layout */

/* ===== Container ===== */
.amelia-my-schedule {
    margin: 0 auto;
    padding: 0;
    max-width: 100%;
}

.amelia-my-schedule h2 {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

/* ===== Table Layout ===== */
.amelia-my-schedule table.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    table-layout: fixed;
}

.amelia-my-schedule table.shop_table thead th {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    border: none;
    white-space: nowrap;
}

.amelia-my-schedule table.shop_table thead th:first-child {
    width: 28%;
}

.amelia-my-schedule table.shop_table thead th:nth-child(2) {
    width: 16%;
}

.amelia-my-schedule table.shop_table thead th:nth-child(3) {
    width: 12%;
}

.amelia-my-schedule table.shop_table thead th:nth-child(4) {
    width: 10%;
}

.amelia-my-schedule table.shop_table thead th:nth-child(5) {
    width: 12%;
}

.amelia-my-schedule table.shop_table thead th:nth-child(6) {
    width: 22%;
}

.amelia-my-schedule table.shop_table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.amelia-my-schedule table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

.amelia-my-schedule table.shop_table tbody tr:hover td {
    background-color: #f8fafc;
}

.amelia-my-schedule table.shop_table tbody tr:nth-child(even) td {
    background-color: #fafbfc;
}

.amelia-my-schedule table.shop_table tbody tr:nth-child(even):hover td {
    background-color: #f1f5f9;
}

/* Service name styling */
.amelia-my-schedule table.shop_table td strong {
    color: #1a1a2e;
    font-weight: 600;
    font-size: 14px;
    display: block;
    word-wrap: break-word;
}

/* ===== Status Badges ===== */
.amelia-booking-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.amelia-status-approved {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.amelia-status-pending {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.amelia-status-canceled,
.amelia-status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.amelia-status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== Action Buttons ===== */
.amelia-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.amelia-cancel-btn,
.amelia-reschedule-btn {
    font-size: 12px !important;
    padding: 7px 14px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: white !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    display: inline-block;
    white-space: nowrap;
}

.amelia-cancel-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.amelia-cancel-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
}

.amelia-reschedule-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.amelia-reschedule-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
}

.amelia-cancel-btn:active,
.amelia-reschedule-btn:active {
    transform: translateY(0);
}

/* ===== Empty State ===== */
.amelia-my-schedule .woocommerce-info {
    margin-top: 20px;
    border-radius: 10px;
    padding: 40px 24px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

/* ===== Responsive ===== */
@media screen and (max-width: 900px) {
    .amelia-my-schedule table.shop_table {
        table-layout: auto;
    }
    .amelia-my-schedule table.shop_table thead th,
    .amelia-my-schedule table.shop_table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    .amelia-my-schedule table.shop_table {
        display: block;
        border-radius: 12px;
    }
    .amelia-my-schedule table.shop_table thead {
        display: none;
    }
    .amelia-my-schedule table.shop_table tbody {
        display: block;
    }
    .amelia-my-schedule table.shop_table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }
    .amelia-my-schedule table.shop_table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 14px;
    }
    .amelia-my-schedule table.shop_table tbody td:last-child {
        border-bottom: none;
        padding-top: 12px;
        justify-content: flex-start;
    }
    .amelia-my-schedule table.shop_table tbody td::before {
        content: attr(data-title);
        font-weight: 600;
        color: #64748b;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        min-width: 80px;
    }
    .amelia-action-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    .amelia-booking-status {
        display: inline-flex;
    }
}

/* ===== Page Layout Fix - Full Width ===== */
.amelia-my-schedule-active .woocommerce-MyAccount-navigation {
    display: none !important;
}

.amelia-my-schedule-active .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.amelia-my-schedule-active .entry-title {
    display: none;
}