/* Sandbox Styles - Left Side */
.sandbox-container {
    position: fixed;
    top: 20px;
    left: 20px;
    min-width: 180px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    padding: 0;
    z-index: 9998;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.sandbox-header {
    background: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.sandbox-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.sandbox-links {
    padding: 8px 12px 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sandbox-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    position: relative;
}

/* Active button styles */
.sandbox-btn.active {
    background: #f8f9fa;
    color: #333;
}

.sandbox-btn.active:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    cursor: pointer;
}

.sandbox-btn.active:active {
    transform: scale(0.98);
}

/* Inactive button styles */
.sandbox-btn.inactive {
    background: #f5f5f5;
    color: #b0b0b0;
    border-color: #e8e8e8;
    cursor: not-allowed;
    opacity: 0.7;
    padding-right: 32px;
}

.sandbox-btn.inactive:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
    transform: none;
    box-shadow: none;
}

/* Inactive badge */
.inactive-badge {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.6;
}

/* Tooltip for inactive buttons */
.sandbox-btn.inactive:hover::after {
    content: "Not yet installed";
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0.9;
}

/* Footer with status */
.sandbox-footer {
    padding: 8px 12px 10px 12px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.sandbox-status {
    font-size: 11px;
    color: #999;
}

.sandbox-status .active-count {
    color: #4CAF50;
    font-weight: bold;
}

.sandbox-status .inactive-count {
    color: #b0b0b0;
    font-weight: bold;
}

/* Responsive: Hide on small screens if needed */
@media (max-width: 768px) {
    .sandbox-container {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        min-width: 200px;
        max-width: 90%;
    }
    
    .sandbox-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sandbox-btn {
        width: auto;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .sandbox-btn.inactive {
        padding-right: 28px;
    }
    
    .inactive-badge {
        font-size: 10px;
        right: 6px;
    }
}
