/* ============================================
   RESET E CONFIGURAÇÕES GERAIS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
     display: flex;
    justify-content: center;
    align-items: center;
}

body::before {
    content: '';
    position: fixed;
	filter: grayscale(100%);
	background-image: url('https://i1.wp.com/macro.com.br/site/wp-content/themes/macro-2/assets/img/topo-contato.jpg?1593472618');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: rgba(0, 0, 0, 0.5);*/
    z-index: 0;
}

/* ============================================
   CONTAINER PRINCIPAL - OCUPA TELA INTEIRA
   ============================================ */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    background: transparent;
    overflow: auto;
}

/* ============================================
   LOGO TOPO
   ============================================ */
.logo-topo {
    position: absolute;
    left: 80px;
    top: 40px;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ============================================
   TELA DE LOGIN - SPLIT LAYOUT
   ============================================ */
#loginScreen {
    display: block;
    width: 100%;
    height: 100vh;
    position: absolute;
    z-index: 999;
}

#loginScreen.hidden {
    display: none;
}

.login-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* ============================================
   COLUNA ESQUERDA - BRANDING COM IMAGEM
   ============================================ */
.login-left {
    flex: 1;
    background-image: url('../images/rush.png');
    background-size: cover;
    background-position: center;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Overlay escuro sobre a imagem para legibilidade */
.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* Efeito de gradiente decorativo */
.login-left::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.login-left-logo {
    position: relative;
    z-index: 1;
}

.login-left-logo img {
    max-width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
}

.login-left-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 40px 0;
    display: none;
}

.login-left-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.login-left-content p {
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.6;
    max-width: 400px;
}

.login-stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 4px;
}

/* ============================================
   COLUNA DIREITA - FORMULÁRIO
   ============================================ */
   
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}   
   
   
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: white;
}

.login-right-content {
    max-width: 400px;
    width: 100%;
}

.login-right-content h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.login-subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 30px;
}

.login-right .form-group-login {
    margin-bottom: 20px;
}

.login-right .form-group-login label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.login-right .form-group-login input[type="email"],
.login-right .form-group-login input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.login-right .form-group-login input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: white;
}

.forgot-password {
    display: inline-block;
    margin-top: 8px;
    color: #667eea;
    font-size: 13px;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 14px;
}

.remember-me {
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.login-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
    display: none;
    padding: 10px;
    border-radius: 8px;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #7f8c8d;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVO - TELA DE LOGIN
   ============================================ */

@media (max-width: 992px) {
    .login-left {
        padding: 30px;
    }
    
    .login-left-content h2 {
        font-size: 28px;
    }
    
    .login-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        height: 100vh;
    }
    
    /* Coluna Esquerda - Topo (50%) */
    .login-left {
        flex: 0 0 50vh;
        min-height: 50vh;
        padding: 25px 25px 15px 25px;
        background-image: url('../images/rush.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .login-left::before {
        background: rgba(0, 0, 0, 0.55);
    }
    
    .login-left-logo img {
        max-width: 90px;
    }
    
    .login-left-content {
        display: flex;
        flex-direction: column;
        padding: 8px 0;
    }
    
    .login-left-content h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .login-left-content p {
        font-size: 13px;
        max-width: 100%;
        opacity: 0.8;
        line-height: 1.4;
    }
    
    .login-stats {
        gap: 20px;
        margin-top: 10px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    /* Coluna Direita - Baixo (50%) */
    .login-right {
        flex: 0 0 50vh;
        min-height: 50vh;
        padding: 25px 25px 30px 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        overflow-y: auto;
    }
    
    .login-right-content {
        max-width: 100%;
        padding: 0;
    }
    
    .login-right-content h1 {
        font-size: 22px;
        margin-bottom: 4px;
    }
    
    .login-subtitle {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .login-right .form-group-login {
        margin-bottom: 14px;
    }
    
    .login-right .form-group-login input[type="email"],
    .login-right .form-group-login input[type="password"] {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .login-options {
        margin: 10px 0;
        font-size: 13px;
    }
    
    .btn-login {
        padding: 12px;
        font-size: 15px;
    }
    
    .login-footer {
        margin-top: 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .login-left {
        flex: 0 0 45vh;
        min-height: 45vh;
        padding: 20px 18px 12px 18px;
    }
    
    .login-left-logo img {
        max-width: 70px;
    }
    
    .login-left-content h2 {
        font-size: 16px;
    }
    
    .login-left-content p {
        font-size: 11px;
    }
    
    .login-stats {
        gap: 15px;
        margin-top: 6px;
    }
    
    .stat-number {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .login-right {
        flex: 0 0 55vh;
        min-height: 55vh;
        padding: 20px 18px 25px 18px;
    }
    
    .login-right-content h1 {
        font-size: 18px;
    }
    
    .login-subtitle {
        font-size: 12px;
        margin-bottom: 14px;
    }
    
    .login-right .form-group-login {
        margin-bottom: 12px;
    }
    
    .login-right .form-group-login label {
        font-size: 11px;
    }
    
    .login-right .form-group-login input[type="email"],
    .login-right .form-group-login input[type="password"] {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    .btn-login {
        padding: 10px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .login-footer {
        margin-top: 12px;
        font-size: 12px;
    }
    
    .forgot-password {
        font-size: 12px;
    }
}

/* ============================================
   TELA PRINCIPAL (APÓS LOGIN)
   ============================================ */
#mainScreen {
    display: none;
    background: transparent;
    padding: 80px 50px 50px 50px;
    width: 100%;
    min-height: 100vh;
}

#mainScreen.active {
    display: block;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 20px 0 10px 10px;
    border-bottom: 0px solid #e0e0e0;
}

.header-title h1 {
    font-size: 18px;
    color: #e0eb23;
    margin-bottom: 5px;
    font-weight: 700;
}

.header-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    right: 80px;
    top: 40px;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.user-info {
    color: #ffffff;
    font-size: 14px;
}

.btn-logout {
    padding: 8px 20px;
    background: #f36b5d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #c0392b;
}

/* ============================================
   UPLOAD ROW - LINHA ÚNICA COM DATA, ARQUIVO E BOTÃO
   ============================================ */
.upload-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-col {
    flex: 1;
    min-width: 0;
}

.upload-col-file {
    flex: 2;
}

.upload-col-btn {
    flex: 0.8;
    min-width: 120px;
}

.upload-col label {
    display: block;
    font-weight: 600;
    color: #e0eb23;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.upload-col input[type="date"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
}

.upload-col input[type="date"]:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: white;
}

.upload-col .file-upload-wrapper {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.upload-col .file-upload-wrapper:hover {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.12);
}

.upload-col .file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-col .file-upload-icon {
    font-size: 24px;
    margin-bottom: 2px;
    display: block;
}

.upload-col .file-upload-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.upload-col .file-name {
    margin-top: 4px;
    color: #e0eb23;
    font-weight: 500;
    font-size: 13px;
    word-break: break-all;
}

.upload-col .btn-upload {
    width: 100%;
    padding: 12px;
	background: linear-gradient(135deg, #2ED5BB 0%, #5ED07A 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upload-col .btn-upload:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.upload-col .btn-upload:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   TIMELINE - 6 PASSOS
   ============================================ */
.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 30px 0;
    position: relative;
    padding: 0 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%);
    z-index: 0;
	margin: 2px 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.timeline-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
	margin-bottom: 5px;
}

.timeline-circle.active {
    background: #d8d62b;
    border-color: #ffffff;
    color: white;
    box-shadow: 0 0 25px rgba(63, 197, 70, 0.4);
    transform: scale(1.05);
}

.timeline-circle.completed {
    background: #2ecc71;
    border-color: #2ecc71;
    color: white;
}

.timeline-circle.error {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.timeline-label {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    letter-spacing: 0.3px;
}

.timeline-label.active {
    color: #e0eb23;
}

.timeline-label.completed {
    color: #2ecc71;
}

.timeline-status {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
    text-align: center;
}

/* ============================================
   TIMELINE CARDS
   ============================================ */
.timeline-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 18px 24px;
    margin: 8px auto 15px auto;
    border-left: 4px solid rgba(255, 255, 255, 0.08);
    display: none;
    transition: all 0.3s ease;
    width: 60%;
    max-width: 700px;
}

.timeline-card.active {
    display: block;
    border-left-color: #d8d62b;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-card.completed {
    display: block;
    border-left-color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.timeline-card.error {
    display: block;
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.timeline-card h4 {
    color: #e0eb23;
    margin-bottom: 6px;
    font-size: 15px;
}

.timeline-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    margin: 2px 0;
}

.timeline-card .detail-value {
    color: #ffffff;
    font-weight: 600;
}


/* ============================================
   LISTA DE CSVs NO CARD
   ============================================ */
.timeline-card .csv-list {
    margin-top: 8px;
    padding-left: 20px;
}

.timeline-card .csv-list-item {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 0;
    font-family: 'Consolas', 'Courier New', monospace;
}

/* Para o card2 em modo completed */
.timeline-card.completed .csv-list-item {
    color: rgba(255, 255, 255, 0.9);
}


/* ============================================
   CARD 2 - EXTRAÇÃO COM LISTA DE CSVs
   ============================================ */
.timeline-card#card2 .csv-list {
    margin-top: 8px;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-card#card2 .csv-list-item {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    padding: 3px 0;
    font-family: 'Consolas', 'Courier New', monospace;
}

.timeline-card#card2.completed .csv-list-item {
    color: rgba(46, 204, 113, 0.9);
}

.timeline-card#card2.active .csv-list-item {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   STATUS E PROGRESSO
   ============================================ */
.status {
    margin-top: 15px;
    padding: 15px 20px;
    border-radius: 10px;
    display: none;
    font-weight: 500;
    white-space: pre-line;
    backdrop-filter: blur(10px);
}

.status.success {
    display: block;
    background: rgba(212, 237, 218, 0.9);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    display: block;
    background: rgba(248, 215, 218, 0.9);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status.loading {
    display: block;
    background: rgba(209, 236, 241, 0.9);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status.processing {
    display: block;
    background: rgba(255, 243, 205, 0.9);
    color: #856404;
    border: 1px solid #ffc107;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    margin: 15px 0 30px;
    overflow: hidden;
    display: none;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, #2ED5BB 0%, #5ED07A 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

/* ============================================
   DOWNLOAD LINKS
   ============================================ */
.download-links {
    margin-top: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: none;
}

.download-links h4 {
    color: #e0eb23;
    margin-bottom: 10px;
    font-size: 15px;
}

.download-links a {
    display: block;
    padding: 8px 14px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    text-decoration: none;
    color: #66b0ff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
    font-size: 14px;
}

.download-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #66b0ff;
}

/* ============================================
   MODAL DE TROCA DE SENHA
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.modal-header p {
    color: #7f8c8d;
    font-size: 14px;
}

.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body .form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 14px;
}

.modal-body .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-body .form-group input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.modal-body .form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel {
    padding: 10px 20px;
    background: #e0e0e0;
    color: #2c3e50;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #d0d0d0;
}

.btn-confirm {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.password-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.password-valid {
    color: #28a745;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* ============================================
   MODAL DE ENRIQUECIMENTO
   ============================================ */
#enriquecimentoModal {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#enriquecimentoModal button {
    transition: all 0.3s ease;
}

#enriquecimentoModal button:hover {
    transform: scale(1.05);
}

#enriquecimentoModal button:active {
    transform: scale(0.95);
}


/* ============================================
   CAMPO DE LIMITE
   ============================================ */
   
.upload-col-limit {
    flex: 0.6;
    max-width: 70px;
}

.upload-col-info {
    flex: 0.6;
    min-width: 100px;
}

.upload-col-limit input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
}

.upload-col-limit input[type="number"]:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: white;
}

/* Remove as setas do input number */
.upload-col-limit input[type="number"]::-webkit-inner-spin-button,
.upload-col-limit input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.upload-col-limit input[type="number"] {
    -moz-appearance: textfield;
}

@media (max-width: 768px) {
    .upload-col-limit {
        flex: none;
        width: 100%;
    }
}


/* ============================================
   BOTÃO LIMPAR TELA
   ============================================ */
#btnContainer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

#btnContainer button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#btnContainer button:hover {
    transform: scale(1.05);
}

#btnContainer button:active {
    transform: scale(0.95);
}



/* ============================================
   RESPONSIVO - TELA PRINCIPAL
   ============================================ */
@media (max-width: 1024px) {
    .timeline-card {
        width: 80%;
    }
}

@media (max-width: 768px) {
    #mainScreen.active {
        padding: 20px;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-top: 10px;
    }
    
    .header-title h1 {
        font-size: 18px;
    }
    
    .header-right {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        justify-content: flex-end;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
		z-index: 1;
    }
    
    .upload-row {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .upload-col {
        width: 100%;
        flex: none;
    }
    
    .upload-col-btn {
        flex: none;
        min-width: auto;
    }
    
    .upload-col .btn-upload {
        height: 46px;
        font-size: 16px;
    }
    
    .timeline {
        padding: 0 5px;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 5px;
    }
    
    .timeline-step {
        min-width: 60px;
    }
    
    .timeline-circle {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .timeline-label {
        font-size: 10px;
    }
    
    .timeline-status {
        font-size: 9px;
    }
    
    .timeline-card {
        width: 95%;
        padding: 15px 18px;
    }
    
    .logo-topo {
        left: 20px;
        top: 20px;
		z-index: ;
    }
    
    .logo-topo img {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    #mainScreen.active {
        padding: 12px;
    }
    
    .header-title h1 {
        font-size: 18px;
    }
    
    .header-title p {
        font-size: 12px;
    }
    
    .upload-row {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .upload-col label {
        font-size: 12px;
    }
    
    .upload-col input[type="date"] {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .upload-col .file-upload-text {
        font-size: 12px;
    }
    
    .upload-col .btn-upload {
        font-size: 14px;
        height: 42px;
        padding: 10px;
    }
    
    .timeline-circle {
        width: 30px;
        height: 30px;
        font-size: 11px;
        border-width: 1.5px;
    }
    
    .timeline-label {
        font-size: 8px;
        margin-top: 4px;
    }
    
    .timeline-status {
        font-size: 7px;
    }
    
    .timeline-card {
        padding: 12px 15px;
        width: 100%;
    }
    
    .timeline-card h4 {
        font-size: 13px;
    }
    
    .timeline-card p {
        font-size: 12px;
    }
    
    .user-info {
        font-size: 12px;
    }
    
    .btn-logout {
        padding: 6px 14px;
        font-size: 12px;
    }
}