/* public/css/styles.css */

/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

/* Layout Principal */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 20px;
    margin-left: 250px;
    margin-top: 60px;
}

/* Header */
.dashboard-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 250px;
    height: 60px;
    background: #fff;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Navegação Lateral */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    background: #2c3e50;
    color: #fff;
    padding: 20px 0;
}

/* Formulários */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Botões */
.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.btn-success {
    background: #2ecc71;
    color: #fff;
}

/* Tabelas */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: #f8f9fa;
}

/* Alertas */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-250px);
        transition: transform 0.3s;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .dashboard-header {
        left: 0;
    }
}



/* Estilos específicos para links */

/* Link padrão */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Links do menu principal */
.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    border-radius: 6px;
    margin: 4px 0;
}

.menu-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.menu-link:hover {
    background-color: #f0f2f5;
    color: #0061f2;
}

.menu-link.active {
    background-color: #0061f2;
    color: white;
}

/* Link do botão principal (ex: Novo Cliente) */
.btn-primary-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #0061f2;
    color: white;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
}

.btn-primary-link i {
    margin-right: 8px;
}

.btn-primary-link:hover {
    background-color: #0056d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Links de ação (editar, excluir, visualizar) */
.action-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin: 0 4px;
}

.action-link.edit {
    background-color: #0061f2;
    color: white;
}

.action-link.delete {
    background-color: #dc3545;
    color: white;
}

.action-link.view {
    background-color: #28a745;
    color: white;
}

.action-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Links de navegação superior */
.nav-link {
    color: #666;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.nav-link:hover {
    color: #0061f2;
    background-color: #f8f9fa;
}

/* Links do perfil/usuário */
.profile-link {
    color: #333;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
}

.profile-link i {
    margin-right: 8px;
}

.profile-link:hover {
    background-color: #f8f9fa;
}

/* Links do footer */
.footer-link {
    color: #666;
    font-size: 13px;
    padding: 4px 8px;
}

.footer-link:hover {
    color: #0061f2;
}

/* Link para voltar */
.back-link {
    display: inline-flex;
    align-items: center;
    color: #666;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.back-link i {
    margin-right: 8px;
}

.back-link:hover {
    background-color: #f8f9fa;
    color: #0061f2;
}

/* Links desabilitados */
a.disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

/* Links em tabelas */
.table a {
    color: #0061f2;
    font-weight: 500;
}

.table a:hover {
    text-decoration: underline;
}

/* Links em cards */
.card-link {
    color: #0061f2;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
}

.card-link:hover {
    background-color: rgba(0, 97, 242, 0.1);
}

/* Links de paginação */
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
}

.pagination-link:hover {
    background-color: #f8f9fa;
    color: #0061f2;
}

.pagination-link.active {
    background-color: #0061f2;
    color: white;
}

:root {
    --primary-color: #0061f2;
    --secondary-color: #6c757d;
    --success-color: #00ba88;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
}

/* Layout Base */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--background-color);
}

.main-content {
    flex: 1;
    padding: 2rem;
    margin-left: 250px;
}

/* Cards de Resumo */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
}

.summary-card:nth-child(1) .card-icon {
    background: rgba(0, 97, 242, 0.1);
    color: var(--primary-color);
}

.summary-card:nth-child(2) .card-icon {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.summary-card:nth-child(3) .card-icon {
    background: rgba(0, 186, 136, 0.1);
    color: var(--success-color);
}

.card-info h3 {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* Grid de Conteúdo */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.grid-item {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.grid-item h3 {
    color: var(--text-color);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

/* Tabela */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
}

.table th {
    background-color: var(--background-color);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.table td {
    border-bottom: 1px solid var(--border-color);
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-ativo {
    background: rgba(0, 186, 136, 0.1);
    color: var(--success-color);
}

.status-pendente {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.status-inativo {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Gráfico de Barras */
.chart-container {
    padding: 1rem 0;
}

.chart-bar {
    margin-bottom: 1.5rem;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.bar-value {
    height: 8px;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.bar-value::after {
    content: attr(data-value);
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Responsividade */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .summary-card {
        padding: 1rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .card-value {
        font-size: 1.25rem;
    }
}

/* Estilo global para links */
a {
    text-decoration: none;
    color: #0061f2;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

a:hover {
    background-color: rgba(0, 97, 242, 0.1);
    color: #0056d6;
}

a i {
    font-size: 16px;
}

a.active {
    background-color: #0061f2;
    color: white;
}

a.disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}