:root {
    --primary-color: #4285f4;
    --secondary-color: #f1f3f4;
    --border-color: #dadce0;
    --text-dark: #202124;
    --text-light: #5f6368;
}

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

body {
    font-family: 'Google Sans', Arial, sans-serif;
    background-color: #f8f9fa;
    color: var(--text-dark);
    line-height: 1.6;
    padding: 20px;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(60,64,67,0.3), 0 2px 6px rgba(60,64,67,0.15);
    overflow: hidden;
}

.app-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.app-title {
    font-size: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 24px;
    background: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.spacer {
    flex: 1;
}

button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

button:not(.secondary) {
    background: var(--primary-color);
    color: white;
    border: none;
}

button:not(.secondary):hover {
    background: #3367d6;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

button.secondary {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

button.secondary:hover {
    background: #f8f9fa;
}

.editor-container {
    display: flex;
    height: calc(100vh - 180px);
    min-height: 500px;
}

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

.editor-column:first-child {
    border-right: 1px solid var(--border-color);
}

.column-header {
    padding: 12px 16px;
    font-weight: 500;
    background: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#editor, #preview {
    flex: 1;
    padding: 16px;
    width: 100%;
    height: 100%;
    overflow: auto;
}

#editor {
    border: none;
    resize: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
}

#preview {
    font-size: 15px;
}

.status-bar {
    padding: 8px 16px;
    background: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .editor-container {
        flex-direction: column;
        height: auto;
    }
    
    .editor-column:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    #editor, #preview {
        min-height: 300px;
    }
}
.friend-links {
padding: 8px 16px;
background: #f8f9fa;
border-top: 1px solid var(--border-color);
font-size: 13px;
}
.friend-links a {
margin: 0 10px;
color: var(--primary-color);
text-decoration: none;
}
.friend-links a {
text-decoration: underline;
}