/* ROOMS MANAGEMENT STYLES */

.rooms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rooms-header h1 {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #1e293b;
    font-size: 1.8rem;
}

.rooms-header h1 i {
    color: #3b82f6;
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* Filters */
.rooms-filters {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.search-box i {
    color: #64748b;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #e2e8f0;
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
}

.filter-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group select,
.filter-group input {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
}

#price-range {
    width: 100%;
    margin-top: 5px;
}

#price-value {
    display: inline-block;
    margin-left: 10px;
    color: #3b82f6;
    font-weight: 600;
}

/* Room Stats */
.rooms-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.room-stat {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.room-stat:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.stat-icon.total { background: #3b82f6; }
.stat-icon.available { background: #10b981; }
.stat-icon.occupied { background: #8b5cf6; }
.stat-icon.maintenance { background: #f59e0b; }
.stat-icon.cleaning { background: #64748b; }

.stat-info h4 {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-info .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
}

/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.room-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.room-card.available { border-left: 5px solid #10b981; }
.room-card.occupied { border-left: 5px solid #8b5cf6; }
.room-card.reserved { border-left: 5px solid #3b82f6; }
.room-card.maintenance { border-left: 5px solid #f59e0b; }
.room-card.cleaning { border-left: 5px solid #64748b; }
.room-card.out-of-service { border-left: 5px solid #ef4444; }

.room-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.room-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.room-type {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-type.standard { background: #dbeafe; color: #1e40af; }
.room-type.deluxe { background: #f3e8ff; color: #6b21a8; }
.room-type.suite { background: #fef3c7; color: #92400e; }
.room-type.family { background: #d1fae5; color: #065f46; }

.room-content {
    padding: 20px;
}

.room-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.room-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.room-detail:last-child {
    border-bottom: none;
}

.detail-label {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
}

.price-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: #10b981;
}

.room-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

.status-available { background: #d1fae5; color: #065f46; }
.status-occupied { background: #e0e7ff; color: #3730a3; }
.status-reserved { background: #dbeafe; color: #1e40af; }
.status-maintenance { background: #fef3c7; color: #92400e; }
.status-cleaning { background: #e2e8f0; color: #1e293b; }
.status-out-of-service { background: #fee2e2; color: #991b1b; }

.room-services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.service-icon {
    width: 35px;
    height: 35px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
}

.room-actions {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.room-action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.action-view {
    background: #3b82f6;
    color: white;
}

.action-status {
    background: #f1f5f9;
    color: #475569;
}

.action-view:hover {
    background: #2563eb;
}

.action-status:hover {
    background: #e2e8f0;
}

.room-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-floor {
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Floor Plan */
.floor-plan {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.floor-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.floor-plan-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
}

.floor-nav {
    display: flex;
    gap: 10px;
}

.floor-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
}

.floor-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.floor-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.floor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.floor-room {
    height: 120px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.floor-room:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.floor-room.available { background: #d1fae5; border-color: #10b981; }
.floor-room.occupied { background: #e0e7ff; border-color: #8b5cf6; }
.floor-room.reserved { background: #dbeafe; border-color: #3b82f6; }
.floor-room.maintenance { background: #fef3c7; border-color: #f59e0b; }
.floor-room.cleaning { background: #e2e8f0; border-color: #64748b; }
.floor-room.out-of-service { background: #fee2e2; border-color: #ef4444; }

.floor-room-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.floor-room-type {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

.floor-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.available { background: #10b981; }
.legend-color.occupied { background: #8b5cf6; }
.legend-color.reserved { background: #3b82f6; }
.legend-color.maintenance { background: #f59e0b; }
.legend-color.cleaning { background: #64748b; }
.legend-color.out-of-service { background: #ef4444; }

/* Rooms Table */
.rooms-table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 10px 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.view-btn:hover {
    background: #e2e8f0;
}

.view-btn.active {
    background: #3b82f6;
    color: white;
}

.rooms-list-table {
    width: 100%;
    border-collapse: collapse;
}

.rooms-list-table th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    color: #475569;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.rooms-list-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.rooms-list-table tbody tr:hover {
    background: #f8fafc;
}

/* Form Styles */
.beds-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.bed-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bed-option label {
    color: #64748b;
    font-weight: normal;
}

.bed-option input {
    width: 70px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.services-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    transition: all 0.3s;
}

.checkbox-label:hover {
    background: #e2e8f0;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.image-upload {
    margin-top: 10px;
}

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8fafc;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-area i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.browse-link {
    color: #3b82f6;
    text-decoration: underline;
    cursor: pointer;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.preview-image {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.price-display {
    background: #f1f5f9;
    font-weight: 700;
    color: #10b981;
    text-align: center;
}

/* Room Detail Styles */
.room-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.room-detail-images {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f8fafc;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #3b82f6;
}

.room-detail-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
}

.detail-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #64748b;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
}

.detail-value.price {
    color: #10b981;
    font-size: 1.2rem;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tag {
    padding: 8px 15px;
    background: white;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.current-guest {
    background: #e0e7ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.guest-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.guest-avatar {
    width: 50px;
    height: 50px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.guest-details h5 {
    margin-bottom: 5px;
    color: #1e293b;
}

.guest-details p {
    color: #64748b;
    font-size: 0.9rem;
}

.detail-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 1200px) {
    .room-detail-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .rooms-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filter-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .rooms-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rooms-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .rooms-stats {
        grid-template-columns: 1fr;
    }
    
    .room-stat {
        flex-direction: column;
        text-align: center;
    }
    
    .room-actions {
        flex-direction: column;
    }
    
    .detail-actions {
        flex-direction: column;
    }
}