/* Styles khusus untuk simulasi drag & drop */
.simulasi-drag-header {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.back-btn {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    color: #2c5530;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(-5px);
}

.title h1 {
    color: #2c5530;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.title p {
    color: #2c5530;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Main Layout */
.simulasi-drag-container {
    display: flex;
    height: 100vh;
    padding-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.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.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;
    text-align: center;
    cursor: grab;
    transition: all 0.3s ease;
    user-select: none;
}

.drag-object:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    border-color: rgba(76, 175, 80, 0.6);
}

.drag-object:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.drag-object.dragging {
    opacity: 0.5;
}

.object-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.object-name {
    color: #2c5530;
    font-weight: bold;
    font-size: 0.9rem;
    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);
}

/* Objek yang sudah di-drop */
.dropped-object {
    position: absolute;
    cursor: move;
    transition: transform 0.2s ease;
    z-index: 10;
}

.dropped-object:hover {
    transform: scale(1.05);
    z-index: 20;
}

.dropped-object img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.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.8rem;
    font-weight: bold;
    color: #2c5530;
    white-space: nowrap;
}

/* Sidebar Kanan - Kontrol */
.controls-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
}

.controls-title {
    color: #2c5530;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.control-btn {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.6);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c5530;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
}

.control-btn:hover {
    background: rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
}

.control-btn.play {
    background: rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.6);
}

.control-btn.play:hover {
    background: rgba(33, 150, 243, 0.5);
}

.control-btn.reset {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.6);
}

.control-btn.reset:hover {
    background: rgba(244, 67, 54, 0.5);
}

/* Data Panel */
.data-panel {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.data-panel h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    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);
}

.data-value {
    color: #2c5530;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Background elements */
.background {
    display: none;
}

.science-elements {
    display: none;
}

.element {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .objects-sidebar,
    .controls-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .simulasi-drag-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);
    }
    
    .controls-sidebar {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .simulation-area {
        min-height: 400px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .objects-grid {
        grid-template-columns: 1fr;
    }
    
    .title h1 {
        font-size: 1.5rem;
    }
    
    .control-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .control-btn {
        flex: 1;
        min-width: 120px;
    }
}