/* 1. Basic Page Setup */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa; /* Very light gray background */
    margin: 0;
    padding: 40px;
    color: #333;
}

.top-nav {
    max-width: 1200px;
    margin: 0 auto 20px auto;
}

.top-nav h2 {
    margin: 0;
    font-weight: 600;
}

/* 2. The Side-by-Side Magic */
.translator-container {
    display: flex;       /* This puts the panels side-by-side */
    gap: 20px;           /* Space between the two panels */
    max-width: 1200px;
    margin: 0 auto;
    height: 60vh;        /* Makes the boxes nice and tall */
    min-height: 400px;
}

/* 3. The White Panels */
.panel {
    flex: 1;             /* Both panels take up equal 50/50 space */
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 12px; /* Rounded corners */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* 4. The Dropdown Headers */
.panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e1e4e8;
    background-color: #fcfcfc;
}

.panel-header select {
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    outline: none;
}

/* 5. The Typing Areas */
textarea, .output-content {
    flex: 1;             /* Takes up all the empty middle space */
    width: 100%;
    padding: 20px;
    border: none;
    resize: none;        /* Stops the user from resizing the box */
    font-family: 'Inter', sans-serif;
    font-size: 18px;     /* Nice big text */
    line-height: 1.5;
    outline: none;
}

.output-content {
    overflow-y: auto;
    white-space: pre-wrap;
}

textarea::placeholder {
    color: #a0aab5;
}

/* 6. The Bottom Footers */
.panel-footer {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e1e4e8;
    font-size: 13px;
    color: #6a737d;
}

.right-footer {
    justify-content: flex-end; /* Pushes the copy button to the far right */
}

/* 7. The Buttons */
button {
    background-color: #1a1a1a; /* Dark sleek button */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background-color: #333;
}

button:disabled {
    background-color: #999;
    cursor: not-allowed;
}
/* 8. Mobile Responsiveness */
@media (max-width: 768px) {
    /* Reduce the massive padding around the page on small screens */
    body {
        padding: 15px; 
    }

    /* Stack the left and right panels top-to-bottom instead of side-by-side */
    .translator-container {
        flex-direction: column; 
        height: auto; 
    }

    /* Give each panel a minimum height so you still have room to type */
    .panel {
        min-height: 350px; 
    }
}