/* Main Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
}

.container-fluid {
    max-width: 1600px;
    padding: 20px;
}

/* CodeMirror Customization */
.CodeMirror {
    height: 400px;
    border-radius: 0 0 4px 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Theme overrides */
.bg-dark-subtle {
    background-color: #2a2a2a !important;
    color: #f0f0f0;
}

.card {
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-header {
    background-color: #323232;
    border-bottom: 1px solid #3a3a3a;
}

/* Button Styles */
.btn-outline-info, .btn-outline-secondary, .btn-outline-danger, 
.btn-outline-success, .btn-outline-primary, .btn-outline-warning {
    color: #f0f0f0;
}

.btn:focus {
    box-shadow: none;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Form elements styling */
.form-check-input:checked {
    background-color: #5bc0de;
    border-color: #5bc0de;
}

.form-range::-webkit-slider-thumb {
    background: #5bc0de;
}

/* Minecraft specific elements */
.minecraft-font {
    font-family: 'Minecraft', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Responsive Fixes */
@media (max-width: 992px) {
    .CodeMirror {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .CodeMirror {
        height: 250px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: start !important;
    }
    
    .card-header div {
        margin-top: 10px;
    }
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 37, 41, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 4px;
}

.loading:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #5bc0de;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Tooltip improvements */
.tooltip-inner {
    background-color: #5bc0de;
    color: #000;
}

.tooltip.bs-tooltip-auto[x-placement^=top] .arrow::before, 
.tooltip.bs-tooltip-top .arrow::before {
    border-top-color: #5bc0de;
}

/* Github Section */
.github-section {
    background-color: #2d333b;
    padding: 10px;
    border-radius: 6px;
}

/* Info Cards */
.info-card {
    background-color: #323232;
    border-left: 4px solid #5bc0de;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 0 4px 4px 0;
}

/* Network Status Indicator */
.network-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.network-status.online {
    background-color: #28a745;
    box-shadow: 0 0 5px #28a745;
}

.network-status.offline {
    background-color: #dc3545;
    box-shadow: 0 0 5px #dc3545;
}

/* Tambahan untuk tata letak Actions */
.btn-success .badge {
    font-size: 0.7rem;
    vertical-align: middle;
}

.card-body .d-grid.gap-3 {
    gap: 1rem !important;
}

/* Perbaikan ukuran tombol */
.col-6 .btn {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsiveness untuk bagian Actions */
@media (max-width: 992px) {
    .card-body .d-grid.gap-3 {
        gap: 0.7rem !important;
    }
} 