/* Unified Agricultural Theme for All Pages */

/* Page Wrapper - Agricultural Background */
.page-wrapper-agri {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a1a05 0%, #1a3009 25%, #2d5016 50%, #4a7c2a 75%, #6FBF4B 100%);
    position: relative;
    padding: 2rem 0;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    left: 0;
    right: 0;
}

.page-wrapper-agri::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(111, 191, 75, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(74, 138, 58, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Ensure text in page wrapper is dark for readability */
.page-wrapper-agri {
    color: #000000;
}

.page-wrapper-agri p,
.page-wrapper-agri .text-muted,
.page-wrapper-agri small,
.page-wrapper-agri span:not(.brand-text):not(.brand-x) {
    color: #000000;
    font-weight: 500;
}

.page-wrapper-agri h1:not(.page-title-agri),
.page-wrapper-agri h2:not(.page-title-agri),
.page-wrapper-agri h3:not(.page-title-agri),
.page-wrapper-agri h4:not(.page-title-agri),
.page-wrapper-agri h5:not(.page-title-agri),
.page-wrapper-agri h6:not(.page-title-agri) {
    color: #000000;
    font-weight: 600;
}

/* Page Headers */
.page-header-agri {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.page-title-agri {
    font-size: 3rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.page-subtitle-agri {
    font-size: 1.2rem;
    color: #000000;
    margin: 0;
    font-weight: 500;
}

/* Cards - Glassmorphism Style */
.card-agri {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-agri:hover {
    box-shadow: 0 15px 40px rgba(45, 80, 22, 0.15);
    transform: translateY(-2px);
}

.card-header-agri {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2a 100%);
    padding: 1.5rem 2rem;
    color: white;
    border: none;
}

.card-header-agri h5,
.card-header-agri h4 {
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body-agri {
    padding: 2rem;
    color: #000000;
}

.card-body-agri p,
.card-body-agri .text-muted,
.card-body-agri small {
    color: #000000;
    font-weight: 500;
}

.card-body-agri h1,
.card-body-agri h2,
.card-body-agri h3,
.card-body-agri h4,
.card-body-agri h5,
.card-body-agri h6 {
    color: #000000;
    font-weight: 600;
}

/* Buttons - Agricultural Theme */
.btn-agri-primary {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-agri-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.4);
    color: white;
}

.btn-agri-outline {
    background: transparent;
    color: #2d5016;
    border: 2px solid #2d5016;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-agri-outline:hover {
    background: #2d5016;
    color: white;
    transform: translateY(-2px);
}

/* Forms - Agricultural Theme */
.form-control-agri {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control-agri:focus {
    outline: none;
    border-color: #2d5016;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(45, 80, 22, 0.1);
}

.form-label-agri {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label-agri i {
    color: #2d5016;
}

/* Badges - Agricultural Theme */
.badge-agri {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2a 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.badge-agri-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.badge-agri-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #212529;
}

.badge-agri-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Tables - Agricultural Theme */
.table-agri {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.table-agri thead {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2a 100%);
    color: white;
}

.table-agri thead th {
    border: none;
    padding: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-agri tbody td {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    vertical-align: middle;
}

.table-agri tbody tr:hover {
    background: #f8f9fa;
}

/* Alerts - Agricultural Theme */
.alert-agri {
    border-radius: 12px;
    padding: 1.25rem;
    border: none;
    border-left: 4px solid;
}

.alert-agri-success {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
    color: #155724;
}

.alert-agri-info {
    background: rgba(45, 80, 22, 0.1);
    border-left-color: #2d5016;
    color: #1a3009;
}

.alert-agri-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    color: #856404;
}

/* Empty States */
.empty-state-agri {
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.empty-state-agri i {
    font-size: 5rem;
    color: #2d5016;
    margin-bottom: 2rem;
    display: block;
}

.empty-state-agri h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
}

.empty-state-agri p {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title-agri {
        font-size: 2rem;
    }
    
    .card-body-agri {
        padding: 1.5rem;
    }
}

