﻿/* Rooms - Stiluri pentru gestionarea camerelor */

.room-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.room-type-option {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

    .room-type-option:hover {
        border-color: #007bff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,123,255,0.2);
    }

    .room-type-option.selected {
        border-color: #007bff;
        background-color: #e3f2fd;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    }

.room-type-label {
    display: block;
    padding: 1.5rem 1rem;
    text-align: center;
    margin: 0;
    cursor: pointer;
}

    .room-type-label i {
        display: block;
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .room-type-option[data-type="Single"] i {
        color: #42A5F5;
    }
    .room-type-option[data-type="Double"] i {
        color: #66BB6A;
    }
    .room-type-option[data-type="Suite"] i {
        color: #FFA726;
    }

    .room-type-label span {
        display: block;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 0.25rem;
    }

    .room-type-label small {
        color: #6c757d;
        font-size: 0.85rem;
    }

.room-selection-container {
    max-height: 453px;   /* înălțimea maximă a containerului */
    overflow-y: auto;    /* scroll vertical dacă sunt prea multe camere */
    padding-right: 5px;  /* puțin spațiu ca să nu taie textul lângă scroll */
}


/* Preview Card */
.room-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.room-number-preview {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.preview-price {
    font-size: 1.25rem;
    color: #28a745;
    font-weight: 600;
}

/* Room Type Badges pentru lista */
.room-type-badge {
    display: inline-block;
    padding: 0.4em 0.8em;
    font-size: 0.85em;
    font-weight: 500;
    border-radius: 0.375rem;
    text-transform: capitalize;
}

.room-type-single {
    background-color: #17a2b8;
    color: white;
}

.room-type-double {
    background-color: #28a745;
    color: white;
}

.room-type-suite {
    background-color: #ffc107;
    color: #212529;
}

.room-type-default {
    background-color: #e5a4a4;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.4em 0.8em;
    font-size: 0.85em;
    font-weight: 500;
    border-radius: 0.375rem;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* Statistici Cards */
.stats-container {
    text-align: center;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

    .stat-card:hover {
        background: #e9ecef;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #007bff;
    line-height: 1;
    display: block;
    margin-bottom: 0.25rem;
}

    .stat-number.text-success {
        color: #28a745 !important;
    }

    .stat-number.text-info {
        color: #17a2b8 !important;
    }

    .stat-number.text-warning {
        color: #ffc107 !important;
    }

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    display: block;
}

.room-type-summary {
    margin-bottom: 0.25rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.25rem;
}

    .action-buttons .btn {
        padding: 0.375rem 0.5rem;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .room-type-selector {
        grid-template-columns: 1fr;
    }

    .room-preview {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stats-card {
        margin-bottom: 0.5rem;
    }

    .rooms-table {
        font-size: 0.9rem;
    }

    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .room-type-label {
        padding: 1rem 0.5rem;
    }

        .room-type-label i {
            font-size: 1.5rem;
        }
}

/* Room Delete Page Styles */
.room-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin-top: 1rem;
}

.info-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .info-item strong {
        min-width: 140px;
        color: #495057;
    }

.room-number-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: #dc3545;
}


@media (max-width: 768px) {
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }

        .info-item strong {
            min-width: auto;
        }
}