/* assets/css/public-style.css - v1.3.2 */

.rs-reservation-wizard,
.rs-my-reservations {
    max-width: 900px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #000000 !important;
}

.rs-step,
.rs-verification-step {
    display: none;
}

.rs-step.rs-step-active,
.rs-verification-step.rs-step-active {
    display: block;
    animation: rsFadeIn 0.3s ease-in;
}

@keyframes rsFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Karta - bílé pozadí, žádný gradient */
.rs-card {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.rs-card h2 {
    margin-top: 0;
    color: #2b4290 !important;
    font-size: 28px;
    margin-bottom: 10px;
}

.rs-card h3,
.rs-card h4 {
    color: #2b4290 !important;
}

.rs-form-group {
    margin-bottom: 24px;
}

.rs-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000 !important;
}

.rs-input,
.rs-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dddddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    color: #000000 !important;
    background: #ffffff !important;
}

.rs-input:focus,
.rs-select:focus {
    outline: none;
    border-color: #2b4290 !important;
    box-shadow: 0 0 0 3px rgba(43, 66, 144, 0.12);
}

.rs-input.rs-input-error {
    border-color: #e53935 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.rs-field-error {
    display: block;
    color: #e53935;
    font-size: 13px;
    margin-top: 5px;
}

.rs-help {
    display: block;
    font-size: 14px;
    color: #555555;
    margin-top: 6px;
}

/* Tlačítka */
.rs-btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    margin-right: 10px;
    text-decoration: none;
}

.rs-btn-primary {
    background: #2b4290 !important;
    color: #ffffff !important;
}

.rs-btn-primary:hover {
    background: #1e2f6b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 66, 144, 0.35);
}

.rs-btn-secondary {
    background: #f0f0f0 !important;
    color: #000000 !important;
}

.rs-btn-secondary:hover {
    background: #e0e0e0 !important;
}

.rs-btn-danger {
    background: #e53935 !important;
    color: #ffffff !important;
}

.rs-btn-danger:hover {
    background: #c62828 !important;
}

/* Loading stav */
.rs-btn:disabled,
.rs-btn-loading {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Spinner */
.rs-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: rs-spin 0.75s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes rs-spin {
    to { transform: rotate(360deg); }
}

/* Uzavřený systém */
.rs-system-closed-notice {
    background: #ffffff !important;
    border: 2px solid #2b4290;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rs-system-closed-notice h2 {
    color: #2b4290 !important;
    margin-top: 0;
}

.rs-system-closed-notice p {
    color: #000000 !important;
    font-size: 16px;
}

/* Děti */
.rs-child-item {
    background: #f7f7f7 !important;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.rs-child-item h4 {
    margin-top: 0;
    color: #2b4290 !important;
}

.rs-remove-child {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e53935 !important;
    color: #ffffff !important;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

/* Výběr učitelů */
.rs-teacher-selector {
    background: #f7f7f7 !important;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.rs-teacher-checkbox {
    margin-bottom: 16px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #ffffff !important;
}

.rs-teacher-checkbox:hover {
    border-color: #2b4290 !important;
    background: #f0f3fb !important;
}

.rs-teacher-checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.rs-teacher-checkbox label {
    cursor: pointer;
    font-weight: 500;
    color: #000000 !important;
}

.rs-slots-container {
    margin-top: 16px;
    padding-left: 30px;
    display: none;
}

.rs-slots-container.active {
    display: block;
}

/* Sloty */
.rs-slot-option {
    display: inline-block;
    margin: 6px;
    padding: 10px 16px;
    background: #ffffff !important;
    border: 2px solid #dddddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: #000000 !important;
}

.rs-slot-option:hover {
    border-color: #2b4290 !important;
    background: #f0f3fb !important;
}

.rs-slot-option.selected {
    background: #2b4290 !important;
    color: #ffffff !important;
    border-color: #2b4290 !important;
}

.rs-slot-option.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: line-through;
}

.rs-slot-option.conflict {
    background: #ffebee !important;
    border-color: #e53935 !important;
}

/* Alerty */
.rs-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.rs-alert-success {
    background: #e8f5e9 !important;
    color: #1b5e20 !important;
    border: 1px solid #a5d6a7;
}

.rs-alert-danger {
    background: #ffebee !important;
    color: #b71c1c !important;
    border: 1px solid #ef9a9a;
}

.rs-alert-info {
    background: #e8eaf6 !important;
    color: #1a237e !important;
    border: 1px solid #9fa8da;
}

.rs-info {
    background: #eef1fb !important;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #2b4290 !important;
    border: 1px solid #c5cef0;
}

/* Navigace */
.rs-wizard-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

/* Přehled */
.rs-schedule-preview {
    background: #f7f7f7 !important;
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
}

.rs-schedule-item {
    padding: 16px;
    border-left: 4px solid #2b4290;
    margin-bottom: 12px;
    background: #ffffff !important;
    border-radius: 4px;
}

.rs-schedule-time {
    font-weight: 700;
    color: #2b4290 !important;
    font-size: 18px;
}

.rs-schedule-teacher {
    color: #000000 !important;
    margin: 4px 0;
}

.rs-schedule-child {
    color: #555555;
    font-size: 14px;
}

/* Úspěch */
.rs-success-card {
    text-align: center;
}

.rs-success-icon {
    width: 80px;
    height: 80px;
    background: #2b4290 !important;
    color: #ffffff !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 20px;
}

/* Modal */
.rs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.rs-modal-content {
    background: #ffffff !important;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.rs-modal-content h3 {
    color: #2b4290 !important;
    margin-top: 0;
}

/* Kód */
.rs-code-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 600;
}

/* Rezervační položky */
.rs-reservation-item {
    background: #f7f7f7 !important;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rs-reservation-info {
    flex: 1;
}

.rs-reservation-actions {
    margin-left: 20px;
}

.rs-loading {
    color: #555555;
    font-style: italic;
}

/* Status widget */
.rs-system-status {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    gap: 20px;
    background: #ffffff !important;
}

.rs-status-open {
    border-left: 5px solid #2b4290;
}

.rs-status-closed {
    border-left: 5px solid #e53935;
}

.rs-status-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    flex-shrink: 0;
}

.rs-status-open .rs-status-icon {
    background: #2b4290 !important;
    color: #ffffff !important;
}

.rs-status-closed .rs-status-icon {
    background: #e53935 !important;
    color: #ffffff !important;
}

.rs-status-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #000000 !important;
}

.rs-status-description {
    font-size: 15px;
    color: #000000 !important;
}

/* Responsivita */
@media (max-width: 768px) {
    .rs-card {
        padding: 24px;
    }

    .rs-wizard-navigation {
        flex-direction: column;
    }

    .rs-wizard-navigation .rs-btn {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .rs-slot-option {
        display: block;
        margin: 8px 0;
    }

    .rs-system-status {
        flex-direction: column;
        text-align: center;
    }

    .rs-reservation-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .rs-reservation-actions {
        margin-left: 0;
        margin-top: 12px;
    }
}
