/* --- GERAL --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    color: #212529;
}

.container {
    padding: 25px;
    max-width: 1400px;
    margin: 30px auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* --- LOGIN --- */
.login-container {
    width: 380px;
    margin: 100px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.login-container h2 { margin-bottom: 10px; }
.login-container p { margin-bottom: 25px; color: #6c757d; }

/* --- CABEÇALHO --- */
.main-header {
    background: linear-gradient(90deg, #0056b3, #007bff);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.main-header h1 { margin: 0; font-size: 1.6em; }
.main-header nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}
.main-header nav a:hover { text-decoration: none; opacity: 0.8; }

/* --- BOTÕES E FORMULÁRIOS --- */
.btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}
.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}
select, input[type="text"], input[type="email"], input[type="password"], input[type="date"] {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
select:focus, input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    outline: none;
}
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }


/* --- TABELAS E GRIDES --- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.schedule-grid {
    display: grid;
    grid-template-columns: 2.5fr repeat(12, 1fr);
    border: 1px solid #dee2e6;
    font-size: 0.85em;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.grid-header {
    background-color: #e9ecef;
    font-weight: 600;
    padding: 10px;
    border-left: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}
.grid-cell {
    padding: 5px;
    border-left: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    min-height: 50px;
}
.user-cell { background-color: #f8f9fa; font-weight: 600; padding: 10px; }

/* --- ITENS DE AGENDAMENTO E CORES --- */
.schedule-item {
    padding: 4px 6px;
    border-radius: 4px;
    color: #212529;
    margin-bottom: 4px;
    font-size: 0.95em;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 5px solid #000; /* Borda padrão */
}
.tipo-ferias { background-color: #cce5ff; border-left-color: #007bff; }
.tipo-licenca-premio { background-color: #d4edda; border-left-color: #28a745; }
.tipo-alteracao-de-ferias { background-color: #fff3cd; border-left-color: #ffc107; }

/* --- LEGENDA --- */
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; padding-left: 5px; }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-color { width: 20px; height: 20px; border-radius: 4px; }