/**
 * Laundry Basket - Phase 1 Styles
 * Minimal, clean styling for price lists and basket
 */

/* ============================================================================
   PRICE LISTS
   ============================================================================ */
#laundry-price-lists {
    margin: 20px 0;
}

.no-services-msg {
    padding: 20px;
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    color: #555;
    font-size: 14px;
}

.price-list-service {
    margin-bottom: 40px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.service-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.price-categories {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.price-category h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

.price-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: all 0.2s;
}

.price-item:hover {
    background: #f0f0f0;
    border-color: #0073aa;
}

.item-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 15px;
}

.item-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.item-price {
    font-size: 15px;
    color: #0073aa;
    font-weight: 600;
    margin-left: 10px;
}

.item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.item-quantity {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.add-to-basket {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.add-to-basket:hover {
    background: #005a87;
}

/* Bundles */
.price-items.bundles {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.bundle-item {
    flex: 0 0 calc(33.333% - 10px);
    padding: 12px;
    background: #fff9e6;
    border: 1px solid #f0e0a0;
    border-radius: 6px;
    text-align: center;
}

.bundle-amount {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.bundle-price {
    display: block;
    font-size: 16px;
    color: #0073aa;
    font-weight: 600;
    margin-bottom: 3px;
}

.bundle-original {
    display: block;
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.bundle-info {
    margin-top: 8px;
    padding: 8px 12px;
    background: #e8f4f8;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
}

.bundle-info-text {
    margin-bottom: 12px;
    padding: 10px;
    background: #fff9e6;
    border-left: 3px solid #f0b000;
    font-size: 13px;
    color: #666;
}

/* ============================================================================
   BASKET
   ============================================================================ */
#laundry-basket-container {
    margin: 30px 0;
    background: #fff;
    border: 2px solid #0073aa;
    border-radius: 8px;
    padding: 20px;
}

#laundry-basket-container h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#clear-basket {
    padding: 6px 12px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

#clear-basket:hover {
    background: #c82333;
}

.basket-empty {
    padding: 30px;
    text-align: center;
    color: #999;
    font-style: italic;
}

.basket-service-group {
    margin-bottom: 25px;
}

.basket-service-title {
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    font-size: 16px;
    color: #0073aa;
    border-bottom: 1px solid #e0e0e0;
}

.basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 10px;
}

.basket-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.basket-item-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.basket-item-price {
    font-size: 12px;
    color: #666;
}

.basket-item-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.basket-item-quantity {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.remove-from-basket {
    width: 30px;
    height: 30px;
    padding: 0;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: background 0.2s;
}

.remove-from-basket:hover {
    background: #c82333;
}

/* Basket feedback notification */
.basket-feedback {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #28a745;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 10000;
}

.basket-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 768px) {
    .price-item,
    .basket-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .item-info,
    .basket-item-info {
        width: 100%;
    }
    
    .item-actions,
    .basket-item-controls {
        width: 100%;
        justify-content: flex-end;
    }
    
    .bundle-item {
        flex: 0 0 100%;
    }
}



.schedule-col input[type="date"] {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232A4EBB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 52px;
}

.schedule-col select option {
    padding: 14px 18px;
    margin: 6px 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.8;
}


.schedule-col .delivery-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.schedule-col .delivery-note::before {
    content: '🏨';
    font-size: 16px;
}


@media (max-width: 768px) {
    .schedule-card {
        padding: 20px;
        margin-bottom: 24px;
    }

    .schedule-card-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .schedule-card-header h3 {
        font-size: 1.15rem;
    }

    .schedule-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .schedule-col {
        padding: 20px;
    }

    .schedule-label {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .schedule-col input[type="date"],
    .schedule-col select {
        padding: 12px 40px 12px 44px;
        font-size: 16px; /* Prevents iOS zoom */
        min-height: 48px;
    }
}