

h1 {
    text-align: center;
    margin-bottom: 20px;
}

#toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #e7f5ff;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-left: 40px;
    margin-right: 40px;
    gap: 20px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-selector label {
    font-weight: 600;
    color: #1864ab;
}

.language-selector select {
    padding: 8px 12px;
    font-size: 0.95em;
    border-radius: 5px;
    border: 2px solid #1864ab;
    background-color: white;
    color: #1864ab;
    font-weight: 500;
    cursor: pointer;
}

.language-selector select:focus {
    outline: none;
    border-color: #228be6;
}

#container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    margin-left: 40px;
    margin-right: 40px;
    height: 600px;
}

.editor-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.editor-section label {
    font-weight: 600;
    color: #1864ab;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.card {
    flex: 1;
    padding: 15px;
    border: 2px solid #a5d8ff;
    border-radius: 10px;
    background-color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    resize: none;
    outline: none;
    color: #1a1a1a;
}

.card:focus {
    border-color: #228be6;
    box-shadow: 0 0 0 3px rgba(33, 136, 252, 0.1);
}

#runBtn {
    padding: 12px 30px;
    background-color: #1864ab;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

#runBtn:hover {
    background-color: #1971c2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 100, 171, 0.3);
}

#runBtn:active {
    transform: translateY(0);
}

#runBtn:disabled {
    background-color: #9db4cc;
    cursor: not-allowed;
    transform: none;
}

@media screen and (max-width: 900px) {
    #container {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }

    #toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .editor-section {
        min-height: 300px;
    }
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 1.5em;
    }

    #toolbar {
        padding: 12px 15px;
        gap: 10px;
    }

    .language-selector {
        width: 100%;
    }

    .language-selector select {
        flex: 1;
    }

    #runBtn {
        width: 100%;
    }

    .card {
        font-size: 0.85em;
        padding: 12px;
    }

    .editor-section {
        min-height: 250px;
    }
}