@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #2596be;
    --secondary-color: #18b2a6;
    --background-color: #f4f7f9;
    --text-color: #333333;
    --text-secondary: #666666;
    --border-color: #ccc;
    --error-color: #e74c3c;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

input,
button,
textarea,
select {
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    height: 100vh;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Toast */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    min-width: 250px;
    padding: 12px 18px;
    border-radius: 8px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.toast.show {
    opacity: 0.95;
    transform: translateX(0);
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

.toast-icon {
    margin-right: 12px;
    font-size: 20px;
}

.toast-message {
    flex: 1;
}

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

/* Animações */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 0.95;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Login */

.login-container {
    display: flex;
    width: 900px;
    height: 500px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-left {
    width: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 120px;
    background-color: rgba(0, 0, 0, 0.10);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(4px);
}

.login-left h1 {
    font-size: 2.3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.divider {
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    height: 80%;
    margin: auto 0;
}

.login-right {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right h2 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
}

.input-group {
    width: 100%;
    margin-bottom: 15px;
}

.welcome {
    margin-bottom: 25px;
}

.welcome h2 {
    font-weight: 600;
    color: var(--primary-color);
}

.welcome p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon i {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.input-icon input {
    width: 100%;
    padding: 10px 10px 10px 38px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.2s;
}

.input-icon input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 150, 190, 0.1);
}

.error-msg {
    background-color: #ffdddd;
    color: #b20000;
    border: 1px solid #b20000;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

label {
    font-weight: 500;
    display: block;
    color: #333;
    margin-bottom: 5px;
    margin-top: 15px;
    font-size: 15px;
}

input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: 0.2s;
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 150, 190, 0.1);
}

.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    background-color: var(--secondary-color);
}

/* Dashboard */

.dashboard-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

.charts-area {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.chart-card {
    background: var(--card-bg, #fff);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chart-card canvas {
    max-height: 400px;
}

.chart-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-color);
}

/* -----------------------------------
   TABELAS
----------------------------------- */

.table-lancamentos {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.table-lancamentos thead tr {
    background: var(--primary-color);
    color: #fff;
}

.table-lancamentos th,
.table-lancamentos td {
    padding: 12px 15px;
    font-size: 14px;
}

.table-lancamentos tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.03);
}

.table-lancamentos tbody tr:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Status */
.status-aprovado {
    color: #28a745;
    font-weight: 600;
}

.status-pendente {
    color: #d9a300;
    font-weight: 600;
}

.status-reprovado {
    color: #e63946;
    font-weight: 600;
}

/* -----------------------------------
   META DO MÊS
----------------------------------- */

.meta-mes {
    margin-top: 20px;
}

.meta-box {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
}

.progress-bar {
    width: 100%;
    background: #ccc;
    height: 14px;
    border-radius: 10px;
    margin: 12px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    border-radius: 10px;
    transition: width 0.6s ease;
}

#metaDescricao {
    font-size: 14px;
    color: var(--text-muted);
}

/* Sidebar */

.sidebar {
    width: 80px;
    transition: width 0.3s ease;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.sidebar.expanded {
    width: 250px;
    align-items: stretch;
}

.sidebar:not(.expanded) .text {
    width: 0;
    margin: 0;
    padding: 0;
}

.logo-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    margin-top: 15px;
}

.toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.logo-section:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: transform 0.2s;

}

.toggle-btn i {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.menu {
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-grow: 1;
}

.menu-bottom {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.menu li,
.menu-bottom li {
    width: 100%;
    height: 48px;
    padding: 0;
    margin: 0;
}

.menu-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.2s;
}

.sidebar:not(.expanded) .menu-link {
    justify-content: center;
    padding-left: 0;
    gap: 0;
}

.sidebar.expanded .menu-link {
    justify-content: flex-start;
    padding-left: 25px;
}

.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.icon {
    font-size: 20px;
    width: 40px;
    text-align: center;
    color: white !important;
    text-shadow: none !important;
    background: none !important;
    vertical-align: middle;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: white !important;
}

.text {
    opacity: 0;
    line-height: 1.2;
    vertical-align: middle;
    white-space: nowrap;
    transition: opacity 0.3s ease, width 0.3s ease, margin 0.3s ease;
}

.sidebar.expanded .text {
    opacity: 1;
    width: auto;
    margin-left: 0;
}

/* Topbar */

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
    flex-shrink: 0;
}

.topbar h2 {
    font-weight: 600;
    color: var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

.user-photo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Notificações */

.notification-area {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.notification-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
    line-height: 1;
}

.notification-btn:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.limpar-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
    line-height: 1;
}

.limpar-btn i {
    font-size: 13px;
}

.limpar-btn:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

/* Notificações | Badges | */

.notification-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 5px;
    min-width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    transform: translate(25%, -25%);
}

.notification-badge.ativo {
    visibility: visible;
    opacity: 1;
}

/* Dropdown Notificações */

.notification-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.notification-dropdown::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    z-index: 1001;
}

.notification-dropdown.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    font-weight: 700;
    border-bottom: 1px solid var(--background-color);
    color: var(--primary-color);
    font-size: 1rem;
    background-color: #fcfcfc;
}

.dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-list li {
    padding: 12px 18px 12px 35px;
    border-bottom: 1px solid var(--background-color);
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.4;
    position: relative;
    border-left: 5px solid transparent;
}

.dropdown-list li::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.9;
}

.dropdown-list li .notif-time {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/*
    Estilo para cada tipo de notificação 
*/

/* Horas Enviadas */
.dropdown-list li.notif-horas_enviadas {
    border-left-color: var(--primary-color);
}

.dropdown-list li.notif-horas_enviadas::before {
    content: '\f1da';
    color: var(--primary-color);
}

/* Horas aprovadas */
.dropdown-list li.notif-horas_aprovadas {
    border-left-color: var(--secondary-color);
}

.dropdown-list li.notif-horas_aprovadas::before {
    content: '\f058';
    color: var(--secondary-color);
}

/* Horas rejeitadas */
.dropdown-list li.notif-horas_rejeitadas {
    border-left-color: var(--error-color);
}

.dropdown-list li.notif-horas_rejeitadas::before {
    content: '\f057';
    color: var(--error-color);
}

/* Ajuste registro */
.dropdown-list li.notif-ajuste_registro {
    border-left-color: #f39c12;
}

.dropdown-list li.notif-ajuste_registro::before {
    content: '\f0ad';
    color: #f39c12;
}

/* Relatório */
.dropdown-list li.notif-relatorio {
    border-left-color: #34495e;
}

.dropdown-list li.notif-relatorio::before {
    content: '\f20e';
    color: #34495e;
}

/* Avisos gerais do sistema. */
.dropdown-list li.notif-aviso {
    border-left-color: #8e44ad;
}

.dropdown-list li.notif-aviso::before {
    content: '\f0a1';
    color: #8e44ad;
}

.dropdown-list li:not(.unread) {
    border-left-color: var(--border-color);
    opacity: 0.7;
}

.dropdown-list li:not(.unread)::before {
    opacity: 0.5;
}

.dropdown-list li.unread {
    background-color: #eef7fb;
    font-weight: 500;
}

.dropdown-list li.unread:hover {
    background-color: #d8ecf4;
}

.dropdown-list li:last-child {
    border-bottom: none;
}

.dropdown-list li:hover {
    background-color: var(--background-color);
}

/* Conteúdo principal */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
}

.content-area {
    padding: 30px;
    flex-grow: 1;
    overflow-y: auto;
    width: 100%;
}

.main-content-wrapper,
.content {
    padding: 0;
}


/* Controle de Horas */

.header-horas {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-bottom: 10px;
    gap: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.fechar {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    color: #555;
    cursor: pointer;
}

.form-horas {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
}

.tabela-scroll-container {
    width: 100%;
    max-height: 690px;
    overflow-x: auto;
    overflow-y: auto;
    border-radius: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-top: 1px;
}

.tabela-scroll-container::-webkit-scrollbar {
    display: none;
}

.tabela-horas {
    min-width: 800px;
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
}

.tabela-horas thead th {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    border-bottom: none;
    text-transform: uppercase;
    font-size: 0.85em;
    position: sticky;
    top: 0;
    z-index: 10;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}

.tabela-horas tbody td:nth-child(1),
.tabela-horas tbody td:nth-child(2),
.tabela-horas tbody td:nth-child(3),
.tabela-horas tbody td:nth-child(4),
.tabela-horas tbody td:nth-child(5),
.tabela-horas tbody td:nth-child(6) {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.tabela-horas thead th:first-child {
    border-top-left-radius: 8px;
    text-align: center;
}

.tabela-horas thead th:last-child {
    border-top-right-radius: 8px;
    text-align: center;
}

.tabela-horas th,
.tabela-horas td {
    padding: 10px;
    text-align: center;
    white-space: nowrap;
}

.tabela-horas tbody td {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 15px;
    white-space: nowrap;
    color: var(--text-color);
}

.tabela-horas tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.tabela-horas tbody tr:nth-child(even) {
    background-color: #eef7fb;
}

.tabela-horas tbody tr:hover {
    background-color: #d8ecf4;
    transition: background-color 0.2s ease;
}

.tabela-horas tbody tr:last-child td {
    border-bottom: none;
}

.tabela-horas td:nth-child(7),
.tabela-horas th:nth-child(7) {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tabela-horas td:nth-child(8),
.tabela-horas th:nth-child(8) {
    white-space: normal;
    min-width: 250px;
    max-width: 300px;
    vertical-align: top;
}

.tabela-horas td i {
    vertical-align: middle;
    color: var(--primary-color);
}

.tabela-horas th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
}

/* Tabela para aprovar lançamento */

.tabela-aprovacao {
    min-width: 800px;
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    table-layout: auto;
}

.tabela-aprovacao::-webkit-scrollbar {
    display: none;
}

.tabela-aprovacao {
    min-width: 800px;
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.tabela-aprovacao thead th {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    text-transform: uppercase;
    font-size: 0.85em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.tabela-aprovacao tbody td {
    border: 1px solid #e5e7eb;
    padding: 12px 15px;
    white-space: nowrap;
    color: var(--text-color);
    text-align: center;
}

.tabela-aprovacao tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.tabela-aprovacao tbody tr:nth-child(even) {
    background-color: #eef7fb;
}

.tabela-aprovacao tbody tr:hover {
    background-color: #d8ecf4;
    transition: background-color 0.2s ease;
}

.tabela-aprovacao tbody tr:last-child td {
    border-bottom: none;
}

.tabela-aprovacao th,
.tabela-aprovacao td {
    padding: 10px;
    text-align: center;
    white-space: nowrap;
}

.tabela-aprovacao thead th:first-child {
    border-top-left-radius: 8px;
}

.tabela-aprovacao thead th:last-child {
    border-top-right-radius: 8px;
}

.tabela-aprovacao td {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Coluna das ações */

.tabela-aprovacao td:last-child {
    min-width: 150px;
}

.tabela-aprovacao button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85em;
}

.btn-approve {
    border-color: #16a34a55;
    background: #16a34a10;
    color: #16a34a;
}

.btn-approve:hover {
    background: #16a34a20;
    border-color: #16a34a;
    transform: scale(1.05);
}

.btn-approve:active {
    transform: scale(0.95);
}

.btn-reject {
    border-color: #dc262655;
    background: #dc262610;
    color: #dc2626;
}

.btn-reject:hover {
    background: #dc262620;
    border-color: #dc2626;
    transform: scale(1.05);
}

.btn-reject:active {
    transform: scale(0.95);
}

.icon-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    transform: none;
}

.acoes-lote {
    display: flex;
    gap: 5px;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 10px;
}

select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    resize: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%232596be' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

select:disabled {
    background-color: #f0f0f0;
    color: #777;
    cursor: not-allowed;
    background-image: none;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 150, 190, 0.15);
}

textarea {
    min-height: 80px;
    box-sizing: border-box;
}

/* Container do checkbox */

.checkbox-modern {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    gap: 10px;
    color: var(--text-secondary);
    user-select: none;
}

/* Esconde o checkbox original */

.checkbox-modern input {
    display: none;
}

/* Criar a caixinha personalizada */
.checkbox-modern .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color, #4e73df);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease-in-out;
}

/* Cor quando marcado */
.checkbox-modern input:checked+.checkmark {
    background-color: var(--primary-color, #4e73df);
    border-color: var(--primary-color, #4e73df);
}

/* Check (✓) */
.checkbox-modern .checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease-in-out;
}

/* Animação ao marcar */
.checkbox-modern input:checked+.checkmark::after {
    transform: rotate(45deg) scale(1);
}

/* Abas */
.tabs-container {
    width: 100%;
    display: flex;
    align-items: flex-end;
    margin-bottom: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tabs-header {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
    flex-grow: 1;
    position: relative;
}

.tab-btn {
    padding: 8px 0px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    text-align: center;
    position: relative;
    border-radius: 0;
}

.tab-btn.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.tab-add {
    padding: 6px 10px;
    border: none;
    background: transparent;
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 300;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
    border: 2px solid var(--secondary-color);
    margin-left: 10px;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tab-add:hover {
    background: var(--secondary-color);
    color: white;
}

#btnSalvar:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

/* Configurações */

.config-container {
    display: flex;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 30px auto;
    max-width: 1000px;
}

.config-menu {
    background: var(--background-color);
    padding: 30px 20px;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-right: 1px solid #eee;
}

.config-menu h2 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.config-menu .tab-btn {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: 0.25s;
}

.config-menu .tab-btn i {
    font-size: 16px;
}

.config-menu .tab-btn:hover {
    background: rgba(37, 150, 190, 0.1);
    color: var(--primary-color);
}

.config-menu .tab-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.config-content {
    flex: 1;
    padding: 40px;
}

.tab {
    display: none;
}

.tab.active {
    display: block;
}

.form-columns {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-col label {
    margin-top: 10px;
    margin-bottom: -5px;
}

.config-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
}

.config-form label {
    font-weight: 500;
}

.config-form input,
.config-form select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.save-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.save-btn:hover {
    background: var(--secondary-color);
}

.danger-btn {
    background: #e63946;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.danger-btn:hover {
    background: #c53030;
}

.profile-photo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.mini-table th,
.mini-table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: left;
}

.mini-table th {
    background-color: #f0f0f0;
}

.croppie-modal {
    width: 350px;
    max-width: 90%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#croppie-container {
    width: 250px;
    height: 250px;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.toggle-item input[type=checkbox] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Projetos */

.projeto-link {
    position: relative;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.projeto-link .link-icon {
    margin-left: 6px;
    font-size: 0.9em;
    color: var(--secondary-color);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.projeto-link:hover {
    color: var(--secondary-color);
}

.linha-projeto {
    transition: background-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.linha-projeto:hover {
    background-color: #f0f8ff;
}

#hyperlink {
    color: var(--secondary-color);
}

.projeto-link:hover .link-icon {
    opacity: 1;
    transform: translateX(2px);
}

/* Gerenciar */

.modal-special {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s;
}

.modal-content-special {
    position: relative;
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 15px;
    width: 650px;
    max-width: 95%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-top: none;
}

.modal-content-special::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(90deg, #18b2a6, #2abfbc);
}


.modal-title {
    font-size: 24px;
    color: #2596be;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.fechar-special {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
}

.fechar-special:hover {
    color: #ff4d4f;
}

.config-form-special label {
    font-weight: 500;
    margin-top: 15px;
    display: block;
    color: #333;
}

.form-columns-special {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.form-col-special {
    flex: 1;
}

.config-form-special input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: border-color 0.2s;
}

.config-form-special input:focus {
    border-color: #18b2a6;
    outline: none;
}

.save-btn-special {
    width: 100%;
    padding: 12px;
    background: #18b2a6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.save-btn-special:hover {
    background: #2596be;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.btn {
    background-color: #2596be;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
}

.btn i {
    font-size: 18px;
}

.btn:hover {
    background-color: #18b2a6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    background-color: #a0cde0;
    cursor: not-allowed;
    box-shadow: none;
}

td.acoes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    padding: 17px 0;
    border: none;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1;
}

.icon-btn:focus {
    outline: none;
}

.icon-btn i {
    font-size: 18px;
}

/* Efeitos ao passar o mouse */

.icon-btn.edit:hover {
    background: rgba(0, 123, 255, 0.12);
    color: #007bff;
}

.icon-btn.delete:hover {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

.icon-btn.reset:hover {
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
}

/* Relatórios */

.cards-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    flex: 1 1 220px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: #fff;
    border-radius: 14px 14px 0 0;
}

.card-header i {
    font-size: 24px;
    opacity: .9;
}

.card-header span {
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.card.horas .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.card.projetos .card-header {
    background: linear-gradient(135deg, #8E2DE2, #4A00E0);
}

.card.media .card-header {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.card.mais .card-header {
    background: linear-gradient(135deg, #f4b400, #f57c00);
    color: #fff;
}

.card.ativos .card-header {
    background: linear-gradient(135deg, #00c853, #64dd17);
    color: #fff;
}

.card.pendencias .card-header {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-body p {
    margin: 0;
}

.card-body .valor {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

.card-body .legenda {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.card.grafico {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    flex: 1 1 50%;
}

.card.grafico .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-weight: 600;
    color: #fff;
    border-radius: 12px 12px 0 0;
}

.card.grafico-projetos .card-header {
    background: linear-gradient(135deg, #28a745, #85e085);
}

.card.grafico-horas .card-header {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
}

.card.grafico-top5 .card-header {
    background: linear-gradient(135deg, #6a11cb, #8e24aa);
}

.card.grafico .card-body {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.graficos-area {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.top5-lista {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Item base */
.top5-lista .item {
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    animation: fadeUp .4s ease forwards;
}

/* Linha superior */
.top5-info {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

/* Nome */
.nome {
    font-weight: 600;
    font-size: 15px;
}

/* Horas */
.top5-lista .horas {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 14px;
    opacity: .85;
}

/* Barra */
.barra {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
}

.barra-preenchida {
    height: 100%;
    background: linear-gradient(90deg, #2596be, #18b2a6);
    border-radius: 999px;
    transition: width .4s ease;
}

/* Medalha FA */
.medal {
    font-size: 22px;
}

/* Cores */
.medal.ouro {
    color: #f4c430;
}

.medal.prata {
    color: #bdbdbd;
}

.medal.bronze {
    color: #cd7f32;
}

/* Posição (4º e 5º) */
.posicao {
    font-size: 18px;
    font-weight: 800;
    opacity: .6;
    width: 24px;
    text-align: center;
}

/* Animação */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-container {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 720px;
}

.graficos-area .card.grafico {
    flex: 1 1 calc(50% - 10px);
    min-width: 300px;
}

.graficos-area canvas {
    width: 100% !important;
    height: 100% !important;
}

.graficos-area .card-body {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    min-height: 250px;
}

.graficos-area canvas {
    width: 100% !important;
    height: 100% !important;
}

.no-data-message {
    color: #888;
    font-size: 1.1em;
    font-weight: 500;
}