:root {
    --bg-color: #f4f6f8;
    --surface-color: #ffffff;
    --primary-color: #800020; /* Guinda */
    --primary-hover: #600018;
    --secondary-color: #b03050;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #dddddd;
    --error-color: #d32f2f;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
    min-height: calc(100vh - 60px);
    background-image: linear-gradient(135deg, #f4f6f8 0%, #e2e2e2 100%);
}

.top-nav {
    width: 100%;
    background-color: var(--surface-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    border-bottom: 2px solid var(--primary-color);
}
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--primary-color);
}
.user-badge {
    margin-right: auto;
    color: var(--text-muted);
    font-size: 0.95em;
    float: left;
    position: absolute;
    left: 30px;
}
.btn-logout {
    background-color: var(--error-color) !important;
    color: white !important;
    padding: 6px 15px;
    border-radius: 6px;
}
.btn-logout:hover {
    background-color: #b71c1c !important;
}

.container {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 500px;
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

.banner-container {
    margin-bottom: 2rem;
    width: 100%;
}

.banner-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

h1, h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

input[type="text"], input[type="password"], input[type="file"], select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

button, .btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: background-color 0.2s, transform 0.1s;
    width: 100%;
    box-sizing: border-box;
}

button:hover, .btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.text-small {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.flash-messages {
    color: var(--error-color);
    background-color: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #ffcdd2;
}

.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px 20px;
    margin: 20px 0;
    cursor: pointer;
    background-color: #fafafa;
    transition: all 0.2s;
}

.drop-zone:hover, .drop-zone.dragover {
    background-color: #fff0f3; /* Light guinda tint */
    border-color: var(--primary-color);
}

#file-input {
    display: none;
}

code {
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--primary-color);
    font-weight: bold;
}

/* Add stripe animation for processing state */
.stripes {
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

