body {
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

body.dark-mode {
    background-color: #1a202c;
    color: #e2e8f0;
}

body.dark-mode .card {
    background-color: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .card-header {
    background-color: #4a5568 !important;
    color: white !important;
}

body.dark-mode .dropdown-menu {
    background-color: #2d3748;
}

body.dark-mode .dropdown-item {
    color: #e2e8f0;
}

body.dark-mode .dropdown-item:hover {
    background-color: #4a5568;
    color: white;
}

body.dark-mode .btn-outline-secondary {
    color: #e2e8f0;
    border-color: #e2e8f0;
}

body.dark-mode .text-muted {
    color: #a0aec0 !important;
}

.loader {
    border-top-color: #3b82f6;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #2d3748;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 768px) {
    .navbar-brand span {
        display: none;
    }
    
    .card-body {
        height: 300px !important;
    }
    
    .btn-group .btn span {
        display: none;
    }
    
    .btn-group .btn i {
        margin-right: 0 !important;
    }
}

.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.editor-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: white;
}

body.dark-mode .editor-fullscreen {
    background: #2d3748;
}

#output pre {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}

#output .error {
    color: #f87171;
}

#output .success {
    color: #4ade80;
}

#output .warning {
    color: #fbbf24;
}

#output, #editor, .container-fluid {
    overflow-x: hidden;
}
