/* AgroFisco - Hyper-Modern Bootstrap Theme */
:root {
    --primary-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --accent-color: #0d6efd;
    --accent-hover: #0b5ed7;
    --sidebar-bg: #1a1e21; /* Dark Matte */
    --sidebar-width: 260px;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --body-bg: #f0f2f5;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    background-image: radial-gradient(circle at 10% 20%, rgb(242, 246, 252) 0%, rgb(235, 239, 245) 90%);
    color: var(--text-primary);
    min-height: 100vh;
}

/* --- GLASSPHORPHISM UTILS --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px !important;
    border: var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
}

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    background-image: linear-gradient(180deg, #1a1e21 0%, #111315 100%);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1050;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.1);
}

.sidebar .brand-logo {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.65) !important;
    padding: 0.85rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 0.2rem 0.8rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    color: #fff !important;
    background: var(--accent-color);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.sidebar .nav-link i {
    width: 24px;
    margin-right: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- MAIN LAYOUT --- */
.main-wrapper {
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-navbar {
    height: 70px;
    background: rgba(255, 255, 255, 0.85); /* Slightly transparent */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.content-body {
    padding: 2rem;
    flex: 1;
}

/* --- CARDS & PANELS --- */
.card {
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card:hover {  
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

/* --- BUTTONS --- */
.btn {
    border-radius: 8px; /* Softer corners */
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--accent-color);
    border: none;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.25);
}

/* --- TABLES --- */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
}

.table tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.02);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .sidebar { margin-left: calc(var(--sidebar-width) * -1); }
    .sidebar.show { margin-left: 0; box-shadow: 10px 0 50px rgba(0,0,0,0.2); }
    .main-wrapper { margin-left: 0; width: 100%; }
    .content-body { padding: 1rem; }
}

/* --- UTILITIES --- */
.text-gradient {
    background: linear-gradient(45deg, var(--accent-color), #00c6fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.shadow-soft { box-shadow: 0 10px 40px -10px rgba(0,64,128,.1); }

