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

body, html {
    height: 100vh;
    width: 100vw;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow: hidden;
    background-color: #ffffff;
}

/* --- MODERN HEADER --- */
.main-header {
    height: 60px; 
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px); /* Modern frosted effect */
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    z-index: 10;
}

.app-title {
    font-weight: 900;
    font-size: 0.9rem; 
    color: #007bff;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.app-subtitle {
    font-size: 0.55rem;
    color: #bbb;
    text-transform: uppercase;
    margin-top: 2px;
}

/* --- THE GRID ENGINE (68/32) --- */
.container {
    display: grid;
    grid-template-columns: 68% 32%; 
    height: calc(100vh - 60px); 
    width: 100vw;
}

/* --- LEFT SIDE (EDITOR) --- */
#editor {
    padding: 25px;
    font-size: 16px;
    line-height: 1.35; 
    letter-spacing: -0.2px;
    /* Added subtle boldness as requested */
    font-weight: 500; 
    outline: none;
    overflow-y: auto;
    background-color: #ffffff;
    color: #1a1a1b;
    transition: box-shadow 0.3s ease;
}

#editor:focus {
    /* Subtle blue glow when typing */
    box-shadow: inset 0 0 10px rgba(0, 123, 255, 0.03); 
}

/* --- RIGHT SIDE (SIDEBAR) --- */
#sidebar {
    background-color: #fcfcfd;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 1px solid #f1f1f1;
}

.sidebar-top {
    padding: 12px; 
    flex: 1;
}

h2 {
    font-size: 0.6rem;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}

/* --- SELECTOR & BUTTONS --- */
#language-select {
    width: 100%;
    padding: 8px 4px; 
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #334155;
    background-color: #fff;
    cursor: pointer;
    letter-spacing: -0.3px;
    appearance: none; /* Cleaner mobile look */
}

button {
    display: block;
    width: 100%; 
    padding: 12px 4px; 
    margin-bottom: 8px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.72rem; /* Slightly larger since not uppercase */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    white-space: nowrap;
}

button:hover {
    background: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 123, 255, 0.2);
}

button:active {
    transform: scale(0.97);
}

/* --- RESULTS PANEL --- */
#results-panel {
    margin-top: 10px;
    font-size: 0.78rem;
    color: #475569;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    min-height: 60px;
    line-height: 1.5;
}

/* --- FOOTER & LOGO --- */
.brand-footer {
    padding: 15px;
    background: transparent;
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-logo {
    display: block !important;
    width: 170px;
    max-width: 95%;
    height: auto;
    object-fit: contain;
    /* Soft shadow for the logo to pop against the white */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

