/* Scedule Table */
#S_Table{
    --radius: 10px;
    --font-family: 'Arial', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --transition: 200ms ease;
    font-family: var(--font-family);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    direction: rtl;
    --bg: #342e2f;
    --text: #e6eef8;
    --muted: #9aa6b2;
    --accent: #4aa3ff;
    --nav-bg: #231f20;
    --logo: "./Assets/Images/Global/Logo_Dark.png";
    --nav-text: #e6eef8;
    --glass: rgba(255,255,255,0.03);
    --shadow: 0 6px 20px rgba(2,6,23,0.6);
    box-sizing: border-box;
    width: 90vw;
    align-self: center;
    margin: auto;
    margin-top: 10px;
    padding: 10px;
    min-width: 80vw;
    min-height: 70vh;
}








/* Order Form Styles */
.order-form {
    min-width: 600px;
    width: 80%;
    margin: 2rem auto;
    padding: 2rem;
    display: block;
    background: var(--glass);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.order-form h1 {
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.order-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

/* Number input specific styles */
.date-inputs, .time-inputs {
    margin-bottom: 1.5rem;
}

.date-container, .time-container {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.number-input {
    flex: 1;
}

.number-input label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.number-input input {
    text-align: center;
    padding: 0.5rem;
    appearance: textfield;
    -moz-appearance: textfield;
}

.number-input input::-webkit-outer-spin-button,
.number-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Textarea styles */
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.char-counter {
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

/* Error states */
.error-message {
    display: none;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
}

.form-group.error .error-message {
    display: block;
}

/* Success states */
.form-group.success input,
.form-group.success textarea {
    border-color: #28a745;
}

/* Submit button */
.order-form button[type="submit"] {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    width: 100%;
}

.order-form button[type="submit"]:hover {
    background: color-mix(in srgb, var(--accent) 85%, black);
    transform: translateY(-1px);
}

.order-form button[type="submit"]:disabled {
    background: var(--muted);
    cursor: not-allowed;
    transform: none;
}

/* Focus states */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .order-form {
        margin: 1rem;
        padding: 1.5rem;
    }

    .order-form h1 {
        font-size: 1.75rem;
    }

    .date-container, .time-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .number-input {
        width: 100%;
    }
}

/* Loading state */
.order-form.loading button[type="submit"] {
    position: relative;
    color: transparent;
}

.order-form.loading button[type="submit"]::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.order-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--glass);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.order-form h1 {
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.order-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-form label {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.order-form input,
.order-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-form textarea {
    min-height: 120px;
    resize: vertical;
}

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.order-form button[type="submit"] {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    margin-top: 1rem;
}

.order-form button[type="submit"]:hover {
    background: color-mix(in srgb, var(--accent) 85%, black);
    transform: translateY(-1px);
}

.order-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Date and Time input styling */
.order-form input[type="date"],
.order-form input[type="time"] {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v3M16 2v3M3 8h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1.2rem;
    padding-left: 3rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .order-form {
        margin: 1rem;
        padding: 1.5rem;
    }

    .order-form h1 {
        font-size: 1.75rem;
    }

    .order-form button[type="submit"] {
        width: 100%;
    }
}

/* Validation styles */
.order-form input:invalid,
.order-form textarea:invalid {
    border-color: #dc3545;
}

.order-form input:invalid:focus,
.order-form textarea:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

/* Success state for form elements */
.order-form input:valid,
.order-form textarea:valid {
    border-color: #28a745;
}
