:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --secondary-color: #3f37c9;
    --text-color: #2b2d42;
    --text-light: #8d99ae;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --info-color: #4895ef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    
}

/* Estilos Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.main-header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.main-header h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-header nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.main-header nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-header nav a:hover {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.1);
}

.main-header nav a i {
    font-size: 0.9rem;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #dee2e6;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #e5177b;
}

.btn-icon {
    background: transparent;
    color: var(--text-color);
    padding: 8px;
    border-radius: 50%;
}

.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Main Content */
main {
    flex: 1;
    padding: 30px 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .main-header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-header h1 {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-header nav ul {
        gap: 5px;
    }
    
    .main-header nav a {
        padding: 6px 8px;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}






















/* Esconde texto em telas pequenas */
@media (max-width: 600px) {
    .nav-text {
        display: none;
    }
    
    .main-header nav a {
        padding: 8px 10px;
    }
    
    .main-header nav a i {
        margin-right: 0;
        font-size: 1rem;
    }
}

/* Melhorias para dark theme */
.dark-theme {
    --text-color: #f8f9fa;
    --bg-color: #212529;
    --card-bg: #343a40;
    --border-color: #495057;
    --text-light: #adb5bd;
}

.dark-theme .main-header {
    background-color: var(--card-bg);
    border-bottom-color: #495057;
}

.dark-theme .btn-secondary {
    background-color: #495057;
    color: white;
}















/* Estilos para o Dashboard */
    /* Estilos Gerais */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h1 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.dashboard-actions .btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.dashboard-actions .btn:hover {
    opacity: 0.9;
}

/* Grid de estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-card i.fas {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.stat-card p {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.stat-card.warning i.fas,
.stat-card.warning p {
    color: var(--warning-color);
}

.stat-card.danger i.fas,
.stat-card.danger p {
    color: var(--danger-color);
}

.stat-card.success i.fas,
.stat-card.success p {
    color: var(--success-color);
}

/* Tabela de Ações Recentes */
.recent-actions {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.recent-actions h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: rgba(67, 97, 238, 0.05);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

tr:hover {
    background-color: rgba(67, 97, 238, 0.03);
}

/* Badges de status */
.badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 5px;
    text-transform: uppercase;
}

.badge-success {
    background-color: #d4f5dd;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsividade */
@media (max-width: 768px) {
    .stat-card {
        padding: 20px;
    }

    .stat-card p {
        font-size: 1.8rem;
    }

    th, td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-header h1 {
        font-size: 1.4rem;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-card p {
        font-size: 1.6rem;
    }

    th, td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

















/* Formulários SEND LICENCÇAS*/
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    outline: none;
}

select.form-control {
    height: calc(2.2em + 0.75rem + 2px);
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-color);
}

.text-muted {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Linhas do formulário */
.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row .col {
    flex: 1 1 30%;
    min-width: 250px;
}

/* Botões */
.form-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 18px;
    font-weight: bold;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

/* Responsividade */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}




















/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

h1 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4f5dd;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease;
     color: var(--text-color);
}

.tab-btn.active {
    color: var(--text-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

/* Conteúdo das tabs */
.tab-content {
    display: none;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tab-content.active {
    display: block;
}

/* Tabela */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: rgba(67, 97, 238, 0.05);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

tr:hover {
    background-color: rgba(67, 97, 238, 0.03);
}

/* Formulário */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-color);
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    outline: none;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1 1 45%;
    min-width: 250px;
}

.btn {
    padding: 10px 18px;
    font-weight: bold;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.btn-info {
    background: var(--success-color);
    color: #fff;
}

.btn-warning {
    background: var(--warning-color);
    color: #fff;
}

/* Responsividade */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .tab-btn {
        flex: 1 1 100%;
        text-align: left;
    }
}