/* style.css - Sistema Unificado de Sumário de Gado */
/* Design moderno sem links sublinhados */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f0e8 0%, #d4e4d4 100%);
    min-height: 100vh;
}

/* Container Principal */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================ */
/* HEADER MODERNO */
/* ============================================ */
.dashboard-header {
    /*background: linear-gradient(135deg, #2c5f2d 0%, #3a6b3a 100%);*/
    background: linear-gradient(135deg, #bcaaa4, #aed581);
    color: white;
    padding: 20px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.dashboard-header h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.user-name {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

.user-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-badge.admin {
    background: #ffc107;
    color: #2c5f2d;
}

.user-badge.user {
    background: #97bc62;
    color: white;
}

/* Botões de ação no header */
.btn-action {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-logout {
    background: rgba(220, 53, 69, 0.8);
}

.btn-logout:hover {
    background: #dc3545;
}

/* ============================================ */
/* MENU DE NAVEGAÇÃO - MODERNO */
/* ============================================ */
.dashboard-nav {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    padding: 0 20px;
    overflow-x: auto;
}

.nav-item {
    padding: 15px 28px;
    color: #2c5f2d;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    font-size: 0.95rem;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #2c5f2d, #97bc62);
    transition: all 0.3s;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.nav-item:hover::after {
    width: 70%;
}

.nav-item.active {
    background: #f0f7f0;
    color: #1e3a1e;
}

.nav-item.active::after {
    width: 70%;
}

/* ============================================ */
/* CARDS E BOTÕES MODERNOS */
/* ============================================ */
.btn-primary, .btn-secondary, .btn-success, .btn-danger {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5f2d, #3a6b3a);
    color: white;
    box-shadow: 0 2px 5px rgba(44, 95, 45, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 95, 45, 0.3);
}

.btn-secondary {
    background: white;
    color: #2c5f2d;
    border: 2px solid #2c5f2d;
}

.btn-secondary:hover {
    background: #f0f7f0;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-icon {
    padding: 10px;
    border-radius: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-icon:hover {
    background: rgba(44, 95, 45, 0.1);
    transform: scale(1.05);
}

/* Cards interativos */
.card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid rgba(44, 95, 45, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card-clickable {
    cursor: pointer;
}

/* ============================================ */
/* ESTATÍSTICAS */
/* ============================================ */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid rgba(44, 95, 45, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2c5f2d, #97bc62);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c5f2d;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================ */
/* FORMULÁRIOS MODERNOS */
/* ============================================ */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c5f2d;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e7e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fafbfa;
}

.form-control:focus {
    outline: none;
    border-color: #2c5f2d;
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

/* ============================================ */
/* TABELAS MODERNAS */
/* ============================================ */
.table-container {
    background: white;
    border-radius: 20px;
    overflow-x: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.modern-table th {
    background: linear-gradient(135deg, #2c5f2d, #3a6b3a);
    color: white;
    padding: 15px 12px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.modern-table tr:hover {
    background: #f8faf8;
}

/* Botões de ação na tabela */
.table-actions {
    display: flex;
    gap: 8px;
}

.table-action-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.table-action-edit {
    background: #ffc107;
    color: #333;
}

.table-action-edit:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.table-action-toggle {
    background: #17a2b8;
    color: white;
}

.table-action-toggle:hover {
    background: #138496;
    transform: translateY(-2px);
}

.table-action-delete {
    background: #dc3545;
    color: white;
}

.table-action-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-admin {
    background: #b22222;
    color: white;
}

.badge-user {
    background: #2c5f2d;
    color: white;
}

.badge-active {
    background: #28a745;
    color: white;
}

.badge-inactive {
    background: #dc3545;
    color: white;
}

/* ============================================ */
/* ALERTAS E NOTIFICAÇÕES */
/* ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
.dashboard-footer {
    /*background: #2c5f2d;*/
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: auto;
    background: linear-gradient(135deg, #aed581, #bcaaa4);
}

.dashboard-footer p {
    margin: 5px 0;
    opacity: 0.8;
    font-size: 0.85rem;
}

/* ============================================ */
/* RESPONSIVIDADE */
/* ============================================ */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 15px 20px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .dashboard-main {
        padding: 20px 15px;
    }
    
    .nav-item {
        padding: 12px 18px;
        font-size: 0.85rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ============================================ */
/* UTILITÁRIOS */
/* ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.p-20 { padding: 20px; }
.cursor-pointer { cursor: pointer; }