/* /tools/online-html-editor/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    overflow: hidden;
    height: 100vh;
}

/* Header */
#header {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    position: relative;
    z-index: 10;
}

#logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: #58a6ff;
    letter-spacing: -0.5px;
}

#logo span {
    color: #f0f6fc;
}

/* Butonlar */
#buttonContainer {
    display: flex;
    background: #21262d;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    height: 36px;
}

.toggleButton {
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: #8b949e;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.toggleButton::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #58a6ff;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 6px;
    margin: 3px;
}

.toggleButton.active {
    color: #ffffff;
}

.toggleButton.active::before {
    opacity: 0.15;
}

.toggleButton:hover:not(.active) {
    color: #f0f6fc;
    background: #30363d;
}

.toggleButton i {
    font-size: 14px;
}

/* Panel */
#bodyContainer {
    display: flex;
    height: calc(100vh - 56px);
    position: relative;
}

.panel {
    height: 100%;
    border: none;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    padding: 16px;
    background: #0d1117;
    color: #c9d1d9;
    outline: none;
    resize: none;
    overflow-y: auto;
}

textarea.panel {
    background: #010409;
    caret-color: #58a6ff;
    line-height: 1.5;
	border-right: 1px solid #333;
}

iframe.panel {
    background: white;
}

/* Gizli */
.hidden { display: none; }

/* Responsive */
@media (max-width: 768px) {
    #header { padding: 10px; }
    #logo { font-size: 1.2rem; }
    .toggleButton { padding: 0 10px; font-size: 12px; }
    .toggleButton span { display: none; }
}