/* Modern Code Editor Styling - VS Code Benzeri Arayüz */

/* Ana Editör Düzeni */
.editor-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', 'Menlo', monospace;
    overflow: hidden;
}

/* Editör Başlık Bölümü */
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 40px;
    background-color: #252526;
    border-bottom: 1px solid #3e3e42;
}

.editor-title {
    font-weight: 600;
    color: #c5c5c5;
    font-size: 14px;
}

.editor-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-btn {
    background: none;
    border: none;
    color: #b9b9b9;
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.editor-btn:hover {
    background-color: #2a2a2a;
    color: #ffffff;
}

.editor-btn.primary {
    background-color: #0e639c;
    color: white;
}

.editor-btn.primary:hover {
    background-color: #1177bb;
}

.current-file {
    margin-left: 10px;
    padding: 2px 8px;
    background-color: #333;
    border-radius: 3px;
    color: #d4d4d4;
    font-size: 12px;
}

/* Editör İçerik Bölümü */
.editor-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #1e1e1e;
}

.monaco-editor-container {
    width: 100%;
    height: 100%;
}

/* Terminal Bölümü */
.terminal-section {
    height: 300px;
    background-color: #1e1e1e;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-top: 1px solid #3e3e42;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    height: 36px;
    background-color: #252526;
    border-bottom: 1px solid #3e3e42;
    font-size: 13px;
    font-weight: 500;
}

.terminal-actions {
    display: flex;
    gap: 8px;
}

.terminal-btn {
    background: none;
    border: none;
    color: #b9b9b9;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.terminal-btn:hover {
    background-color: #3e3e42;
    color: #ffffff;
}

/* Special button styles for validate, test, and upload */
#validateCode {
    color: #89d185;
}

#validateCode:hover {
    background-color: rgba(137, 209, 133, 0.2);
}

#testCompiledCode {
    color: #75beff;
}

#testCompiledCode:hover {
    background-color: rgba(117, 190, 255, 0.2);
}

#uploadCode {
    color: #c586c0;
}

#uploadCode:hover {
    background-color: rgba(197, 134, 192, 0.2);
}

.terminal-divider {
    color: #4d4d4d;
    margin: 0 4px;
    user-select: none;
}

.terminal-content {
    flex: 1;
    overflow: auto;
    background-color: #1a1a1a;
    padding: 5px;
    font-family: 'Consolas', 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: #d4d4d4;
}

#terminal-display {
    font-family: 'Consolas', 'Monaco', 'Menlo', monospace;
    line-height: 1.5;
    width: 100%;
    height: 100%;
    white-space: pre-wrap;
    padding: 5px;
}

.terminal-input-container {
    padding: 8px 10px;
    background-color: #252526;
    border-top: 1px solid #3e3e42;
    border-bottom: 1px solid #3e3e42;
}

.terminal-input {
    width: 100%;
    background-color: #3c3c3c;
    color: #d4d4d4;
    border: 1px solid #4d4d4d;
    border-radius: 3px;
    padding: 6px 8px;
    font-family: 'Consolas', 'Monaco', 'Menlo', monospace;
    font-size: 13px;
}

.terminal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background-color: #252526;
    border-top: 1px solid #3e3e42;
    height: 36px;
}

.terminal-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-tool-btn {
    background: none;
    border: none;
    color: #b9b9b9;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.terminal-tool-btn:hover {
    background-color: #3e3e42;
    color: #ffffff;
}

.terminal-tool-btn.connect {
    background-color: #215d9c;
    color: white;
    padding: 2px 10px;
    font-weight: 500;
}

.terminal-tool-btn.connect:hover {
    background-color: #1b78d0;
}

.terminal-run-btn {
    background-color: #215732;
    color: white;
    border: none;
    padding: 3px 12px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.terminal-run-btn:hover {
    background-color: #2d7d44;
}

.baud-rate select {
    background-color: #3c3c3c;
    color: #d4d4d4;
    border: 1px solid #4d4d4d;
    border-radius: 3px;
    padding: 2px 5px;
    font-size: 11px;
}

/* Satır Numaraları Stillemesi */
.line-numbers {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    overflow: hidden;
    background-color: #1e1e1e;
    color: #858585;
    font-size: 12px;
    padding-top: 5px;
    text-align: right;
    user-select: none;
}

.line-numbers div {
    padding: 0 5px;
    height: 18px;
    line-height: 18px;
}

/* MediaQuery - Daha küçük ekranlar için */
@media (max-width: 768px) {
    .editor-header {
        flex-direction: column;
        height: auto;
        padding: 8px;
    }
    
    .editor-buttons {
        margin-top: 8px;
        width: 100%;
        justify-content: space-between;
    }
    
    .terminal-footer {
        flex-direction: column;
        height: auto;
        gap: 8px;
        padding: 8px;
    }
    
    .terminal-tools {
        width: 100%;
        overflow-x: auto;
    }
}

/* Terminal mesaj renkleri */
.terminal-error {
    color: #f48771;
}

.terminal-success {
    color: #89d185;
}

.terminal-info {
    color: #75beff;
}

.terminal-warning {
    color: #cca700;
}

/* İmleci yanıp söndürme animasyonu */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #d4d4d4;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}