/* Room Booking System - Public Styles */

.rbs-booking-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.rbs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.rbs-booking-title {
    font-size: 2em;
    color: inherit;
    margin: 0;
    flex: 1;
}

.rbs-button-help {
    background-color: #f0f0f0;
    color: #333;
    font-size: 14px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.rbs-button-help:hover {
    background-color: #0073aa;
    color: #fff;
}

.rbs-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.rbs-button-help:hover .rbs-help-icon {
    background: #fff;
    color: #0073aa;
}

/* Steps */
.rbs-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.rbs-step-active {
    display: block;
}

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

/* Messages */
#rbs-messages {
    margin-bottom: 20px;
}

.rbs-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid;
}

.rbs-message-error {
    background-color: #fee;
    border-color: #d00;
    color: #d00;
}

.rbs-message-success {
    background-color: #efe;
    border-color: #0a0;
    color: #070;
}

.rbs-message-info {
    background-color: #eef;
    border-color: #00a;
    color: #007;
}

/* Boxes */
.rbs-auth-box,
.rbs-verify-box,
.rbs-confirmation-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rbs-auth-box h3,
.rbs-verify-box h3,
.rbs-confirmation-box h3 {
    margin-top: 0;
    color: inherit;
}

/* Forms */
.rbs-form-group {
    margin-bottom: 20px;
}

.rbs-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: inherit;
}

.rbs-form-group input[type="text"],
.rbs-form-group input[type="email"],
.rbs-form-group input[type="date"],
.rbs-form-group input[type="time"],
.rbs-form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.rbs-form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.rbs-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.rbs-help-text {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

/* Buttons */
.rbs-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.rbs-button-primary {
    background-color: #0073aa;
    color: #fff;
}

.rbs-button-primary:hover {
    background-color: #005a87;
    color: #fff;
}

.rbs-button-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.rbs-button-secondary:hover {
    background-color: #e0e0e0;
}

.rbs-button-success {
    background-color: #46b450;
    color: #fff;
}

.rbs-button-success:hover {
    background-color: #3a9943;
}

.rbs-button-link {
    background: none;
    color: #0073aa;
    text-decoration: underline;
    padding: 8px;
}

.rbs-button-link:hover {
    color: #005a87;
}

/* User Info */
.rbs-user-info {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rbs-welcome {
    font-size: 1.1em;
}

/* Rooms Grid */
.rbs-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rbs-room-card {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.rbs-room-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.rbs-room-card.rbs-room-selected {
    border-color: #46b450;
    background-color: #f0f9f0;
}

.rbs-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rbs-room-header h4 {
    margin: 0;
    color: inherit;
}

.rbs-room-location {
    color: #666;
    margin-bottom: 15px;
}

.rbs-icon {
    margin-right: 5px;
}

.rbs-room-card .rbs-button {
    width: 100%;
    margin-top: 10px;
}

/* Badges */
.rbs-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
}

.rbs-badge-warning {
    background-color: #ffb900;
    color: #333;
}

/* Confirmation */
.rbs-confirmation-box {
    text-align: center;
}

.rbs-success-icon {
    width: 80px;
    height: 80px;
    background-color: #46b450;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
}

.rbs-booking-summary {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.rbs-booking-summary p {
    margin: 10px 0;
}

/* Loading */
.rbs-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.rbs-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Modal */
.rbs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rbs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.rbs-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.rbs-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rbs-modal-header h3 {
    margin: 0;
    color: #0073aa;
    font-size: 1.5em;
}

.rbs-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.rbs-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.rbs-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.rbs-modal-body .rbs-help-section {
    margin-bottom: 30px;
}

.rbs-modal-body .rbs-help-section:last-child {
    margin-bottom: 0;
}

.rbs-modal-body h4 {
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
}

.rbs-modal-body ol,
.rbs-modal-body ul {
    line-height: 1.8;
    padding-left: 25px;
}

.rbs-modal-body li {
    margin-bottom: 8px;
}

.rbs-help-note {
    background: #f0f9ff;
    border-left: 4px solid #0073aa;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.rbs-faq-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.rbs-faq-item:last-child {
    margin-bottom: 0;
}

.rbs-faq-item strong {
    display: block;
    color: #0073aa;
    margin-bottom: 8px;
}

.rbs-faq-item p {
    margin: 0;
    line-height: 1.6;
}

.rbs-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #ddd;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .rbs-booking-container {
        padding: 20px 15px;
    }

    .rbs-header {
        flex-direction: column;
        align-items: stretch;
    }

    .rbs-booking-title {
        text-align: center;
        font-size: 1.5em;
    }

    .rbs-button-help {
        width: 100%;
        justify-content: center;
    }

    .rbs-form-row {
        grid-template-columns: 1fr;
    }

    .rbs-rooms-grid {
        grid-template-columns: 1fr;
    }

    .rbs-user-info {
        flex-direction: column;
        gap: 15px;
    }

    .rbs-button {
        width: 100%;
    }

    .rbs-modal {
        padding: 10px;
    }

    .rbs-modal-content {
        max-height: 95vh;
    }

    .rbs-modal-header,
    .rbs-modal-body,
    .rbs-modal-footer {
        padding: 20px;
    }

    .rbs-modal-header h3 {
        font-size: 1.2em;
    }

    .rbs-user-actions {
        align-items: stretch;
    }

    .rbs-recurring-toggle {
        text-align: center;
    }
}

/* User Actions Area */
.rbs-user-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.rbs-recurring-toggle {
    font-size: 13px;
    padding: 6px 12px;
    color: #0073aa;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.rbs-recurring-toggle:hover {
    color: #005a87;
    text-decoration: underline;
}

.rbs-info-box {
    background: #e7f3ff;
    border-left: 4px solid #0073aa;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.rbs-info-box p {
    margin: 5px 0;
    color: #004a7c;
}

.rbs-info-box strong {
    color: #003d66;
}

.rbs-booking-type-form {
    animation: fadeIn 0.3s ease-in;
}
