/* JJS Agro Manager - Modern Theme */
:root {
    --primary-color: #1B5E20; /* Dark Green */
    --primary-light: #4C8C4A;
    --primary-dark: #003300;
    --secondary-color: #757575; /* Gray */
    --background-color: #f4f6f8;
    --surface-color: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --error-color: #D32F2F;
    --success-color: #388E3C;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --glass-bg: #ffffff;
    --glass-border: #e0e0e0;
    --glass-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Cards */
.glass-card {
    /* Use a solid surface color instead of a glassmorphism effect for clarity
       Removed backdrop-filter and translucency to provide a fully opaque background */
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    transition: transform var(--transition-speed) ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

/* Mensagem do Dia */
.mensagem-card {
    background: #F5F7F6;
    border-left: 4px solid #1B5E20;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 24px;
    flex: 1;
}

.mensagem-titulo {
    font-weight: bold;
    color: #1B5E20;
    margin-bottom: 8px;
}

.mensagem-conteudo {
    font-style: italic;
    color: #2D3130;
    line-height: 1.4;
}

/* Tarefas Pendentes */
.tarefas-card {
    background: #ffffff;
    border-top: 4px solid #D4A373;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 24px;
    width: 100%;
}

.tarefas-titulo {
    font-weight: 700;
    font-size: 1.1rem;
    color: #212121;
    margin-bottom: 16px;
}

.tarefas-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tarefas-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #2D3130;
    line-height: 1.4;
}

.tarefas-item:last-child {
    border-bottom: none;
}

.tarefas-icone {
    flex-shrink: 0;
    font-size: 1.1rem;
}

.tarefas-ok {
    background: #ffffff;
    border-top: 4px solid #388E3C;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 24px;
    width: 100%;
}

.tarefas-ok-texto {
    color: #388E3C;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Forms and Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    box-sizing: border-box;
    background-color: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.2);
    background-color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #616161;
    box-shadow: 0 4px 12px rgba(117, 117, 117, 0.4);
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Summary Cards (white cards like Mortalidade) */
.summary-item {
    flex: 1;
    min-width: 100px;
    background: white;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.summary-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.summary-sub {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-danger {
    background-color: #ffebee;
    color: var(--error-color);
    border: 1px solid #ffcdd2;
}

.alert-success {
    background-color: #e8f5e9;
    color: var(--success-color);
    border: 1px solid #c8e6c9;
}

/* Responsive Table */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #eeeeee;
}

th {
    background-color: white;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #f1f8e9; /* Light green hover */
}

/* Utility classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

/* Version Footer */
.version-footer {
    text-align: center;
    padding: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    background: var(--surface-color);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .glass-card {
        padding: 16px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .d-flex.mobile-col {
        flex-direction: column;
    }
}
