.room-details-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.room-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.room-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.last-updated {
    color: #6b7280;
    font-size: 0.875rem;
}

.room-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .room-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-card h2 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    padding: 20px;
    border-radius: 10px;
    color: white;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.2;
}

.info-icon .icon {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}

.info-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.amenity-tag {
    background: #eef2ff;
    color: #4f46e5;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.tenants-section {
    margin-top: 2rem;
}

.tenant-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tenant-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.tenant-card:hover {
    background: #f3f4f6;
}

.tenant-avatar {
    margin-right: 1rem;
    overflow: hidden;
}

.tenant-info {
    flex: 1;
}

.tenant-name {
    color: #111827;
    font-weight: 500;
}

.tenant-dates {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.electricity-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.form-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.submit-button {
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.history-table th,
.history-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.history-table th {
    background: #f9fafb;
    font-weight: 500;
    color: #374151;
}

.history-table tr:hover {
    background: #f9fafb;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background: #def7ec;
    color: #03543f;
}

.status-former {
    background: #fee2e2;
    color: #991b1b;
}
