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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000000;
    background: #F5F5F5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 500px;
    width: 100%;
}

.main-card {
    background: #FFFFFF;
    border: 2px solid #E07A5F;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

header {
    margin-bottom: 30px;
}

.logo {
    max-width: 80px;
    height: auto;
    margin-bottom: 20px;
}

header h1 {
    font-size: 1.8rem;
    color: #000000;
    font-weight: 600;
    margin-bottom: 10px;
}

header p {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #000000;
    font-size: 14px;
}

input[type="email"],
input[type="file"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #000000;
    border-radius: 8px;
    font-size: 16px;
    background: #FFFFFF;
    color: #000000;
    transition: border-color 0.3s ease;
}

input[type="email"]:focus,
input[type="file"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #E07A5F;
}

.btn-primary {
    width: 100%;
    background: #E07A5F;
    color: #FFFFFF;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    background: #D4653E;
}

.btn-primary:disabled {
    background: #666666;
    cursor: not-allowed;
}

.btn-logout {
    background: #DC2626;
    color: #FFFFFF;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.btn-logout:hover {
    background: #B91C1C;
}

.status-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
}

/* Estilos para Upload em Lote */
.batch-upload-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border: 2px dashed #dee2e6;
}

.batch-upload-section h2 {
    color: #28a745;
    margin-bottom: 15px;
    text-align: center;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin: 5px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.batch-progress {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #dee2e6;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 0%;
    transition: width 0.3s ease;
}

.batch-results {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
}

.batch-item {
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.batch-item.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.batch-item.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.batch-item.processing {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Melhorias responsivas */
@media (max-width: 768px) {
    .batch-upload-section {
        padding: 20px;
        margin: 20px 0;
    }

    .batch-upload-info ul {
        margin-left: 10px;
    }
}

.status-message.success {
    background: #D1FAE5;
    color: #065F46;
    border-left-color: #10B981;
}

.status-message.error {
    background: #FEE2E2;
    color: #991B1B;
    border-left-color: #DC2626;
}

.status-message.loading {
    background: #DBEAFE;
    color: #1E40AF;
    border-left-color: #3B82F6;
}

.auth-container {
    text-align: center;
    margin: 20px 0;
}

.auth-card {
    background: #F5F5F5;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
}

.auth-card h2 {
    color: #000000;
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 600;
}

.auth-card p {
    color: #666666;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.admin-header {
    background: #E8F5E8;
    border: 1px solid #C6F6C6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-info span {
    color: #065F46;
    font-weight: bold;
}

.recent-uploads {
    margin-top: 30px;
    border-top: 1px solid #E5E5E5;
    padding-top: 20px;
}

.recent-uploads h2 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: left;
}

.laudo-item {
    background: #F5F5F5;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.laudo-info h4 {
    color: #000000;
    margin-bottom: 5px;
    font-size: 14px;
}

.laudo-info p {
    color: #666666;
    font-size: 12px;
    margin-bottom: 2px;
}

.laudo-actions a {
    background: #E07A5F;
    color: #FFFFFF;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    transition: background 0.2s ease;
}

.laudo-actions a:hover {
    background: #D4653E;
}

small {
    color: #666666;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f8f9fa;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
    margin: 20px;
}

.auth-card h2 {
    color: #E07A5F;
    margin-bottom: 10px;
}

.auth-card p {
    color: #666;
    margin-bottom: 20px;
}

.auth-card input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.auth-card button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #E07A5F;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-card button:hover {
    background: #D4653E;
}

.btn-logout {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-logout:hover {
    background: #c82333;
}

.pagination-btn {
    background: #F5F5F5;
    color: #666666;
    border: 1px solid #E5E5E5;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    background: #E07A5F;
    color: #FFFFFF;
    border-color: #E07A5F;
}

.pagination-btn.pagination-active {
    background: #E07A5F;
    color: #FFFFFF;
    border-color: #E07A5F;
    font-weight: bold;
}

.pagination-dots {
    color: #666666;
    font-size: 14px;
    padding: 8px 4px;
}

.pagination-info {
    text-align: center;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .main-card {
        padding: 30px 20px;
    }

    .laudo-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .laudo-actions {
        align-self: stretch;
    }

    .laudo-actions a {
        display: block;
        text-align: center;
    }

    .pagination-container {
        gap: 5px;
    }

    .pagination-btn {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 35px;
    }
}