/* Styles khusus untuk halaman perhitungan per ruangan/kampus */

.building-section, .room-section {
    background: var(--light);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.room-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-add-room, .btn-clear-rooms {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.btn-add-room {
    background: var(--gradient-4);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 233, 123, 0.3);
}

.btn-add-room:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 233, 123, 0.4);
}

.btn-clear-rooms {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-clear-rooms:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.room-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
    animation: slideIn 0.4s ease-out;
}

.room-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.room-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.room-item-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-remove-room {
    padding: 8px 15px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-remove-room:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.btn-calculate-large {
    width: 100%;
    padding: 20px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-calculate-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.action-section {
    margin: 30px 0;
    text-align: center;
}

.building-summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-left: 6px solid var(--primary);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.summary-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.summary-item label {
    display: block;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.summary-item .result-value {
    display: block;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3em;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95em;
}

.result-table thead {
    background: var(--gradient-1);
    color: white;
}

.result-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-dark);
}

.result-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.result-table tbody tr {
    transition: background 0.3s ease;
}

.result-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.result-table tbody tr:last-child td {
    border-bottom: none;
}

.result-table td:first-child,
.result-table th:first-child {
    text-align: center;
    width: 50px;
}

.result-table td:nth-child(2) {
    font-weight: 600;
    color: var(--primary);
}

.result-table td:nth-child(5),
.result-table td:nth-child(6) {
    text-align: center;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Info Section */
.info-section {
    margin-bottom: 30px;
}

.info-box-large {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-left: 5px solid var(--info);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.info-box-large h3 {
    color: var(--info);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.info-box-large p {
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--dark);
}

.info-box-large ul {
    margin-left: 20px;
    margin-top: 10px;
}

.info-box-large li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .room-controls {
        flex-direction: column;
    }
    
    .btn-add-room, .btn-clear-rooms {
        width: 100%;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .result-table {
        font-size: 0.85em;
    }
    
    .result-table th,
    .result-table td {
        padding: 10px;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-standar-link {
        width: 100%;
        text-align: center;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
