:root {
    --primary: #f59e0b; /* Laranja da Limpetrans */
    --primary-hover: #d97706;
    --bg-dark: #111827;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --danger: #ef4444;
    --success: #059669;
}

html, body {
    height: 100%; margin: 0; padding: 0; font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-light); color: var(--text-main);
}
* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }

body.login-page {
    display: flex; align-items: center; justify-content: center; background: #f3f4f6;
}
.login-box {
    background: white; padding: 40px; border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); width: 100%; max-width: 400px;
}
.login-header { text-align: center; margin-bottom: 30px; }
.login-header i { font-size: 3rem; color: var(--primary); margin-bottom: 10px; }

.layout { display: flex; flex-direction: column; min-height: 100vh; }
header {
    background: white; padding: 15px 40px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; gap: 12px; color: var(--primary); }
.user-controls { display: flex; gap: 15px; align-items: center; }
.main-content { flex: 1; padding: 40px; width: 100%; max-width: 1200px; margin: 0 auto; }

.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 20px; }
.system-card {
    background: white; border-radius: 12px; padding: 30px; border: 1px solid var(--border);
    text-align: center; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; position: relative; overflow: hidden;
}
.system-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border-color: var(--primary); }
.system-card i { font-size: 3.5rem; color: var(--primary); margin-bottom: 20px; }
.system-card h3 { margin: 10px 0; font-size: 1.5rem; }
.system-card p { color: var(--text-muted); margin-bottom: 20px; }

.upload-section {
    background: white; padding: 40px; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    text-align: center; margin-bottom: 30px; border: 2px dashed var(--border);
}
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.table-container { background: white; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid var(--border); overflow-x: auto; }
.data-table, .log-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th, .data-table td, .log-table th, .log-table td { padding: 12px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th, .log-table th { background-color: #f9fafb; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; }

.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-group input { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
.password-wrapper { position: relative; }
.password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-muted); }

.btn-primary {
    background-color: var(--primary); color: white; border: none; padding: 10px 20px;
    border-radius: 8px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-secondary {
    background: #fef3c7; color: var(--primary-hover); border: 1px solid transparent; padding: 8px 16px; border-radius: 6px; cursor: pointer;
    font-weight: 500; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn-secondary:hover { background: #fde68a; }

.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); align-items: center; justify-content: center; padding: 20px;
}
.modal-content { 
    background-color: #fff; padding: 25px; border-radius: 12px; width: 100%; max-width: 500px; 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); position: relative; max-height: 95vh; overflow-y: auto; display: flex; flex-direction: column;
}
.modal-content.lg { max-width: 1000px; width: 95%; }
.close { position: absolute; right: 20px; top: 15px; font-size: 24px; cursor: pointer; color: #aaa; }
.close:hover { color: #000; }
.loading { display: flex; flex-direction: column; align-items: center; padding: 20px; color: var(--text-muted); }

/* Tabs Específicas do Jornada */
.tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.tab-btn { background: none; border: none; font-size: 1rem; padding: 10px 20px; cursor: pointer; color: var(--text-muted); font-weight: 600; border-radius: 6px; }
.tab-btn.active { background: #fef3c7; color: #d97706; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.search-bar { display: flex; gap: 15px; align-items: flex-end; margin-bottom: 20px; background: white; padding: 20px; border-radius: 8px; border: 1px solid var(--border); }