/* Styles khusus untuk simulasi interaktif */
.simulasi-interaktif-container {
    display: flex;
    height: calc(100vh - 80px);
    margin-top: 80px;
}

/* Sidebar Kiri - Objek Drag & Drop */
.objects-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    overflow-y: auto;
}

.sidebar-title {
    color: #2c5530;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

.objects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.drag-object {
    background: rgba(255, 255, 255, 0.25);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: grab;
    transition: all 0.3s ease;
    user-select: none;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.drag-object:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    border-color: rgba(76, 175, 80, 0.6);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.drag-object:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.drag-object.dragging {
    opacity: 0.5;
}

.object-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.object-name {
    color: #2c5530;
    font-weight: bold;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Area Simulasi Tengah */
.simulation-area {
    flex: 1;
    background: linear-gradient(135deg, #87CEEB, #E0F7FA);
    position: relative;
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.area-label {
    text-align: center;
    color: #2c5530;
    background: rgba(255, 255, 255, 0.3);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.area-label h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.area-label p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Objek yang sudah di-drop */
.dropped-object {
    position: absolute;
    cursor: move;
    transition: transform 0.2s ease;
    z-index: 10;
    width: 80px;
    height: 80px;
}

.dropped-object:hover {
    transform: scale(1.05);
    z-index: 20;
}

.dropped-object img {
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 10px;
}

.dropped-object .object-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #2c5530;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Sidebar Kanan - Kontrol & Gaya */
.controls-sidebar {
    width: 320px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.controls-title {
    color: #2c5530;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

/* Section Gaya */
.gaya-section {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gaya-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.gaya-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-align: left;
}

.gaya-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
}

.gaya-btn.active {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.6);
    transform: translateX(5px);
}

.gaya-icon {
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.gaya-name {
    color: #2c5530;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Section Kontrol */
.control-section {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.control-btn {
    padding: 1rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: none;
    font-weight: bold;
    font-size: 0.95rem;
}

.control-btn.play {
    background: rgba(33, 150, 243, 0.3);
    border: 2px solid rgba(33, 150, 243, 0.6);
    color: #1565C0;
}

.control-btn.play:hover {
    background: rgba(33, 150, 243, 0.5);
    transform: translateY(-2px);
}

.control-btn.reset {
    background: rgba(244, 67, 54, 0.3);
    border: 2px solid rgba(244, 67, 54, 0.6);
    color: #C62828;
}

.control-btn.reset:hover {
    background: rgba(244, 67, 54, 0.5);
    transform: translateY(-2px);
}

.control-btn.hapus {
    background: rgba(255, 152, 0, 0.3);
    border: 2px solid rgba(255, 152, 0, 0.6);
    color: #EF6C00;
}

.control-btn.hapus:hover {
    background: rgba(255, 152, 0, 0.5);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-text {
    flex: 1;
}

/* Section Informasi */
.info-section {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-label {
    color: #2c5530;
    font-weight: bold;
    font-size: 0.85rem;
}

.info-value {
    color: #2c5530;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.info-desc {
    color: #2c5530;
    font-size: 0.8rem;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.6rem;
    border-radius: 6px;
    font-style: italic;
}

/* Data Panel */
.data-panel {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.data-panel h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.data-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.data-label {
    color: #2c5530;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.data-value {
    color: #2c5530;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .objects-sidebar {
        width: 240px;
    }
    .controls-sidebar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .simulasi-interaktif-container {
        flex-direction: column;
        height: auto;
    }
    
    .objects-sidebar,
    .controls-sidebar {
        width: 100%;
        height: auto;
    }
    
    .objects-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        max-height: 200px;
    }
    
    .objects-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .controls-sidebar {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .simulation-area {
        min-height: 400px;
    }
    
    .gaya-buttons,
    .control-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .gaya-btn,
    .control-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .objects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gaya-btn,
    .control-btn {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
}