* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-image: url('programming2.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    font-family: 'Inter', sans-serif;
}

/* Enhanced body gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(20, 30, 48, 0.85),
        rgba(36, 59, 85, 0.82),
        rgba(22, 34, 42, 0.85)
    );
    backdrop-filter: blur(4px);
    z-index: 0;
}

/* Add noise texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AYJBygBAHCtHAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAACJUlEQVRo3u2ZO0vcUBTH/+cGFftY2CJIwaJFsB9AkBYKfgdLOxc7++4I7Ueh4AfwG9S9g4KLi4OD4OBgQRAEQfABIhbx9d/BQ/EFaWJyc5P8YLlwubn3/O45555zE4QQdFqKoEMlABKACEAEIAIQAYgA/AuAvr4+zMzMYGRkBMFgEM1mE7VaDdVqFcViEY1G4/sAiUQCs7OzCAQCbf1qmgZFUZDL5b4HEI/HMT8/j66urvdtTNPE7u4uNE376i+RSGBubg7d3d1t7RYHZD0xMYFkMunu3XFd2KZpIpvNQtd11x1MTk4ilUq1/SFc9ySdTmN4eNhVh7lcDnt7e9B1HaZpfmq7tbWFaDSKgYEBV/2Mjo4inU57A2BsbAyLi4vw+XwghNiWbDaLfD6PVCqFoaEhx/ZLS0sYHx/3BsDS0hL8fj8sy7J1wnFcS87PzzE4OIhQKOTYPxAIYHl52RsAfr8fsVgMhBBYlgWO41qyv7+P6+trjI+PO/aPxWLw+/3eAOA4DuFwGADAsiyUy2Xc3t7i6uoKJycnuLy8xPT0NARBcOwfDofBcZw3AG5ubnB2dgbTNGFZFgghqNfrODw8RLlchtNYxPM8BEHwBsDFxQVOT09RrVZb9oQQgmq1CkVRHAHwPG8PwM1KZFkW9vf3USqVoGkaKpUKarXah/2AZVlQVRX1et0RwOPjY8c+UTkuiycAEYAIQAQgAvD/AjwDgjqxzVbJmZIAAAAASUVORK5CYII=');
    opacity: 0.02;
    pointer-events: none;
    z-index: 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
        backdrop-filter: blur(5px);
    }
    50% {
        background-position: 100% 50%;
        backdrop-filter: blur(8px);
    }
    100% {
        background-position: 0% 50%;
        backdrop-filter: blur(5px);
    }
}

/* Update grid layout for more editor space */
.compiler-container {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Add top margin to container */
.container {
    padding: 2rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
}

/* Adjust tab container spacing */
.tab-container {
    height: calc(100vh - 6rem);  /* Adjusted height for top margin */
    padding-top: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.language-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Animated tabs */
.tab {
    margin: 4px 8px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    color: white;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform-origin: left;
}

.tab:hover {
    transform: translateX(8px) scale(1.02);
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.15) 100%
    );
    border-color: rgba(255, 255, 255, 0.2);
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #7f7fd5, #86a8e7, #91eae4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tab:hover::before {
    opacity: 0.1;
}

.tab.active {
    background: linear-gradient(
        45deg,
        rgba(127, 127, 213, 0.25) 0%,
        rgba(134, 168, 231, 0.25) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 32px rgba(103, 111, 198, 0.15);
    transform: translateX(10px);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(103, 111, 198, 0.2),
                    0 0 10px rgba(103, 111, 198, 0.2),
                    0 0 15px rgba(103, 111, 198, 0.2);
    }
    to {
        box-shadow: 0 0 10px rgba(103, 111, 198, 0.3),
                    0 0 20px rgba(103, 111, 198, 0.3),
                    0 0 30px rgba(103, 111, 198, 0.3);
    }
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 0.5s ease-out;
}

/* Enhanced glass panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 64px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.glass-select, .glass-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Enhanced buttons */
.glass-button {
    background: linear-gradient(
        45deg,
        rgba(103, 111, 198, 0.4) 0%,
        rgba(134, 168, 231, 0.4) 100%
    );
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.glass-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #91eae4, #86a8e7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-button:hover::after {
    opacity: 1;
}

.glass-button:hover {
    background: linear-gradient(
        45deg,
        rgba(103, 111, 198, 0.6) 0%,
        rgba(134, 168, 231, 0.6) 100%
    );
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.glass-button#runBtn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(
        45deg,
        rgba(103, 111, 198, 0.6) 0%,
        rgba(134, 168, 231, 0.6) 100%
    );
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Adjust editor container layout */
.editor-container {
    display: grid;
    grid-template-columns: 2fr 0.8fr;
    gap: 1.5rem;
    height: calc(100vh - 120px);
}

.editor-container > div {
    background: rgba(255, 255, 255, 0.05);
}

/* Enhanced editor */
#editor {
    min-height: 100%;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 20, 35, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

#editor:focus-within {
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(103, 111, 198, 0.2);
}

/* Adjust input/output container */
.input-output-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-output-container > div {
    flex: 1;
    height: calc(50% - 0.75rem);
}

/* Input/Output enhancements */
textarea {
    width: 100%;
    height: calc(100% - 40px);
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: #e0e0e0;
    font-size: 16px;
    resize: none;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Consolas', monospace;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

h3 {
    color: white;
    margin-bottom: 10px;
}

#output {
    height: calc(100% - 40px);
    color: white;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-y: auto;
}

.control-buttons {
    display: flex;
    gap: 15px;
    margin-right: 5px;
}

.control-buttons button:hover {
    transform: translateY(-2px) scale(1.05);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #fff;
    font-size: 14px;
}

.editor-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.editor-controls select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
}

/* Category selector */
#categorySelect {
    margin-right: 15px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

#categorySelect:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Logo enhancement */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.logo i {
    font-size: 24px;
    color: #7f7fd5;
}

.logo h2 {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 10s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    50%, 100% { transform: translateX(100%) rotate(45deg); }
}

/* Output styling */
.execution-result {
    padding: 15px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Consolas', monospace;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.execution-result.success {
    border-left: 4px solid #64ffda;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.1);
}

.execution-result.error {
    border-left: 4px solid #ff5370;
    box-shadow: 0 0 20px rgba(255, 83, 112, 0.1);
}

/* Loading animation */
.loading {
    color: #64ffda;
    position: relative;
    padding-left: 20px;
}

.loading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #64ffda;
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Theme selector enhancement */
#themeSelect {
    position: relative;
    transition: all 0.3s ease;
}

#themeSelect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Category selector */
.category-selector {
    padding: 10px 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-selector select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-selector select:hover {
    background: rgba(255, 255, 255, 0.12);
}

.language-tabs {
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    padding: 10px;
}

.language-tabs .tab {
    margin: 4px 8px;
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-tabs .tab:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
}

/* Simple Gorgeous Footer */
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 0;
    z-index: 1000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-brand {
    color: #64ffda;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-brand:hover {
    color: #9affeb;
}

.footer-heart {
    color: #ff6b6b;
    display: inline-block;
    animation: heartbeat 1.5s ease infinite;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
