/* Base styles */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    overflow: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Toolbar styles */
.toolbar {
    background-color: #333;
    color: white;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.toolbar button svg {
    width: 16px;
    height: 16px;
}

.toolbar button:hover {
    background-color: #45a049;
}

/* Copy button specific styles */
#copy-code-btn {
    background-color: #3D3D3D; /* Different color to distinguish */
}

#copy-code-btn:hover {
    background-color: #4A4A4A;
}

#copy-code-btn.copied {
    background-color: #5A5A5A;
}

/* Toolbar right items spacing */
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar select {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* Main container */
.main-container {
    display: flex;
    height: calc(100vh - 52px);
}

/* Status bar */
.status-bar {
    height: 22px;
    background-color: #007acc;
    color: white;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    align-items: center;
    gap: 15px;
}

#zoom-level {
    color: #d4d4d4;
    font-size: 12px;
    border-right: 1px solid #444;
    padding-right: 10px;
}

/* Resizer */
.resizer {
    width: 6px;
    cursor: col-resize;
    background-color: #444;
    transition: background-color 0.2s;
}

.resizer:hover,
.resizer.active {
    background-color: #007acc;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1e1e1e;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #007acc;
    animation: spin 1s ease-in-out infinite;
}

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