/* assets/css/style.css */
/* Estilos personalizados do AgroControl */

:root {
    --primary-color: #28a745;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Estilo para cards do dashboard */
.dashboard-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.dashboard-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), #34ce57);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 15px;
    font-weight: 600;
}

/* Estilo para tabelas */
.table-custom {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary-color), #34ce57);
    color: white;
}

.table-custom th {
    font-weight: 600;
    padding: 12px;
}

.table-custom td {
    padding: 10px 12px;
    vertical-align: middle;
}

/* Botões personalizados */
.btn-custom-primary {
    background: linear-gradient(135deg, var(--primary-color), #34ce57);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    transition: opacity 0.3s;
}

.btn-custom-primary:hover {
    opacity: 0.9;
    color: white;
}

/* Formulários */
.form-custom {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-custom label {
    font-weight: 500;
    color: #495057;
}

.form-custom .form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px;
}

.form-custom .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Sidebar */
.sidebar {
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    min-height: 100vh;
    color: white;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    padding-left: 25px;
}

.sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .dashboard-card {
        margin-bottom: 15px;
    }
    
    .table-responsive {
        border-radius: 10px;
        overflow: hidden;
    }
}