/* CSS Reset */
*,
*::before,
*::after {
    box-sizing: border_box;
    margin: 0;
    padding: 0;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

/* Container */
.container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.upload-container {
    max-width: 1200px;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="file"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fafafa;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

/* User Info */
.user-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #eef2f3;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.logout-btn {
    background-color: #e74c3c;
    font-size: 0.8rem;
    padding: 8px 12px;
}

.logout-btn:hover {
    background-color: #c0392b;
}

/* Output Area */
#output {
    margin-top: 20px;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    max-height: 600px;
    /* Default for non-full-height pages */
    width: 100%;
    max-width: 1200px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Full Height Layout for Upload Page */
body.full-height-layout {
    height: 100vh;
    overflow: hidden;
}

body.full-height-layout #output {
    flex: 1;
    max-height: none;
    margin-bottom: 50px;
    /* Add some bottom spacing */
}

/* Version Footer */
.version-footer {
    margin-top: 20px;
    font-size: 0.75rem;
    color: #95a5a6;
    text-align: center;
}