
/* --- style.css --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    display: grid;
    place-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
}

/* --- Form Container (Login/Register) --- */
.form-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    box-sizing: border-box;
}

.form-container h1 {
    text-align: center;
    color: #222;
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-link {
    text-align: center;
    margin-top: 1.5rem;
}

.form-link a {
    color: #007aff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.form-link a:hover {
    text-decoration: underline;
}

/* --- Upload Container (Dashboard) --- */
.upload-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    box-sizing: border-box;
}

.upload-container h1 {
    text-align: center;
    color: #222;
    margin-top: 0;
    font-size: 1.5rem; /* Make room for balance */
}

/* File Input */
.file-input-wrapper {
    border: 2px dashed #007aff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.file-input-wrapper:hover {
    background-color: #f9f9f9;
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-input-label {
    color: #007aff;
    font-weight: 500;
}

#file-name {
    margin-top: 1rem;
    font-weight: 600;
    color: #555;
    text-align: center;
}

/* Form Controls */
.upload-container .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    cursor: pointer;
}

/* Price Display */
.price-display {
    margin-top: 2rem;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.price-display .label {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.price-display .price {
    font-size: 2.25rem;
    font-weight: 700;
    color: #007aff;
    margin: 0.5rem 0 0 0;
}

/* --- Shared Elements (Buttons, Errors) --- */
#error-message-auth,
#error-message-upload {
    color: #d93025;
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
    display: none; /* Hidden by default */
}

button {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    border: none;
    border-radius: 8px;
    background-color: #007aff;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #c0c0c0;
    cursor: not-allowed;
}

#logout-button {
    background-color: transparent;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    width: auto;
    padding: 0.5rem;
    margin: 0;
    float: right;
}

#logout-button:hover {
    background-color: transparent;
    text-decoration: underline;
}
