/* Menu Plan Plugin Custom Styles */

.menu-plan-form {
    max-width: 1200px;
    margin: 0 auto;
}

/* School Selection Styling */
#school-select {
    font-size: 16px;
    font-weight: 500;
}

/* Week Selection Styling */
#week-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #B54868;
}

#week-container label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    margin-right: 15px;
    margin-bottom: 10px;
}

#week-container label:hover {
    background: #f1f5f9;
    border-color: #B54868;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#week-container input[type="radio"]:checked + span,
#week-container label:has(input[type="radio"]:checked) {
    background: #B54868;
    color: white;
    border-color: #0284c7;
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.3);
}

/* Groups Container */
#groups-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

#groups-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#groups-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#groups-checkboxes label:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

#groups-checkboxes input[type="checkbox"]:checked + label,
#groups-checkboxes label:has(input[type="checkbox"]:checked) {
    background: #dbeafe;
    border-color: #B54868;
    color: #fff;
}

/* Menu Plans Styling */
.menu-plans-container {
    margin-top: 30px;
}

.menu-plan-section {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.menu-plan-section h3 {
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

/* Table Styling */
.menu-plan-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.menu-plan-table th,
.menu-plan-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.menu-plan-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.menu-plan-table td:first-child {
    font-weight: 500;
    background: #f8f9fa;
    min-width: 150px;
}

.menu-plan-table td:not(:first-child) {
    text-align: center;
    background: white;
}

/* Input Styling */
.menu-quantity {
    width: 70px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px;
    transition: border-color 0.2s ease;
}

.menu-quantity:focus {
    outline: none;
    border-color: #B54868;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.menu-quantity:hover {
    border-color: #9ca3af;
}

.menu-quantity::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Table Header Styling for Days */
.menu-plan-table th:not(:first-child) {
    text-align: center;
    background: #f0f9ff;
    color: #B54868;
    font-weight: 600;
    border-bottom: 2px solid #B54868;
}

/* Contact Information Styling */
#contact-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    margin-top: 30px;
}

#contact-info h3 {
    color: #1f2937;
    margin-bottom: 20px;
}

/* Button Styling */
#submit-order {
    background: #059669;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#submit-order:hover {
    background: #047857;
}

#submit-order:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Alert Messages */
.uk-alert {
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid transparent;
}

.uk-alert-success {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.uk-alert-danger {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.uk-alert-primary {
    background: #dbeafe;
    border-color: #B54868;
    color: #B54868;
}

/* Loading Animation */
#loading-message {
    position: relative;
}

#loading-message::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #B54868;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-plan-table {
        font-size: 12px;
    }

    .menu-plan-table th,
    .menu-plan-table td {
        padding: 8px 4px;
    }

    .menu-quantity {
        width: 50px;
        font-size: 12px;
    }

    #groups-checkboxes {
        flex-direction: column;
    }

    #groups-checkboxes label {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .menu-plan-table {
        font-size: 11px;
    }

    .menu-plan-table th,
    .menu-plan-table td {
        padding: 6px 2px;
    }

    .menu-quantity {
        width: 40px;
        font-size: 11px;
        padding: 4px;
    }
}