/* Farmer Facilitator - Shared Styles */
/* Green Agricultural Theme */
/* Developed by The Best EC - https://thebestec.org/ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-green: #22c55e;
    --dark-green: #15803d;
    --light-green: #86efac;
    --golden: #f59e0b;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --red: #ef4444;
    --cyan: #06b6d4;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #052e16 0%, #14532d 30%, #166534 60%, #22c55e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: white;
}

/* Background Animation */
.bg-animation { position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; pointer-events: none; }
.bg-animation::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%); animation: floatBg 20s ease-in-out infinite; }
@keyframes floatBg { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-2%, -2%); } }
.floating-icon { position: absolute; font-size: 24px; opacity: 0.15; animation: float 15s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* Header */
.header { position: relative; z-index: 10; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; backdrop-filter: blur(10px); background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 50px; height: 50px; background: linear-gradient(135deg, #22c55e, #15803d); border-radius: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4); }
.logo-icon i { font-size: 24px; color: white; }
.logo-text { font-size: 24px; font-weight: 800; color: white; letter-spacing: -0.5px; }
.logo-text span { color: #86efac; }

/* Company Badge */
.company-badge { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(255,255,255,0.1); border-radius: 20px; }
.company-badge span { color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 500; }

.navbar { display: flex; align-items: center; gap: 16px; }

/* Buttons */
.nav-btn { padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: flex; align-items: center; gap: 8px; border: none; }
.nav-btn-outline { background: transparent; border: 2px solid rgba(255, 255, 255, 0.3); color: white; }
.nav-btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: white; }
.nav-btn-primary { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4); }
.nav-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5); }
.nav-btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.nav-btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4); }

/* User Panel */
.user-panel { display: none; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.1); padding: 8px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); }
.user-panel.show { display: flex; }
.user-info { display: flex; align-items: center; gap: 12px; }
.user-details { text-align: right; }
.user-name { color: white; font-weight: 600; font-size: 14px; }
.user-role { color: rgba(255, 255, 255, 0.6); font-size: 12px; }
.user-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, #22c55e, #16a34a); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 16px; font-weight: 700; }

/* Main Content */
.main-content { position: relative; z-index: 10; padding: 10px; max-width: 1400px; margin: 0 auto; }

/* Hero Section */
.hero { text-align: center; margin-bottom: 60px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 50px; font-size: 14px; color: #86efac; margin-bottom: 24px; border: 1px solid rgba(255, 255, 255, 0.1); }
.hero h1 { font-size: 56px; font-weight: 800; color: white; margin-bottom: 20px; line-height: 1.1; }
.hero h1 .highlight { background: linear-gradient(135deg, #22c55e, #86efac, #f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 20px; color: rgba(255, 255, 255, 0.8); max-width: 700px; margin: 0 auto 40px; }
.hero-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn { padding: 16px 32px; border-radius: 14px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; border: none; }
.btn-primary { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(34, 197, 94, 0.5); }
.btn-secondary { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); color: white; border: 2px solid rgba(255, 255, 255, 0.2); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-3px); }

/* Stats Section */
.stats-section { margin-bottom: 60px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.stat-card { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 7px; padding: 10px; text-align: center; transition: all 0.3s ease; }
.stat-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.12); }

.stat-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 24px; }
.stat-icon.green { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.stat-icon.golden { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.stat-icon.blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.stat-icon.purple { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.stat-icon.red { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.stat-icon.cyan { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }

.stat-value { font-size: 26px; font-weight: 800; color: white; margin-bottom: 4px; }
.stat-label { font-size: 14px; color: rgba(255, 255, 255, 0.7); font-weight: 500; }

/* Quick Links */
.quick-links { margin-bottom: 60px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 32px; font-weight: 700; color: white; margin-bottom: 8px; }
.section-title p { color: rgba(255, 255, 255, 0.7); font-size: 16px; }

.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.link-card { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 7px; padding: 10px; text-decoration: none; transition: all 0.3s ease; display: block; }
.link-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.12); border-color: rgba(34, 197, 94, 0.3); }
.link-card-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px; transition: all 0.3s ease; }
.link-card:hover .link-card-icon { transform: scale(1.1) rotate(5deg); }
.link-card-icon.staff { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.link-card-icon.register { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }
.link-card-icon.farmer { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; }
.link-card-icon.api { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.link-card-icon.bank { background: linear-gradient(135deg, #06b6d4, #0891b2); color: white; }
.link-card-icon.help { background: linear-gradient(135deg, #ec4899, #db2777); color: white; }
.link-card h3 { font-size: 18px; font-weight: 600; color: white; margin-bottom: 8px; }
.link-card p { font-size: 14px; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }

/* Page Title */
.page-title { font-size: 32px; font-weight: 700; color: white; margin-bottom: 8px; }
.page-subtitle { font-size: 16px; color: rgba(255, 255, 255, 0.7); margin-bottom: 32px; }

/* Filter Section */
.filter-section { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 24px; margin-bottom: 24px; }
.filter-title { font-size: 16px; font-weight: 600; color: white; margin-bottom: 16px; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filter-group { flex: 1; min-width: 180px; }
.filter-group label { display: block; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.7); margin-bottom: 6px; }
.filter-group input, .filter-group select { width: 100%; padding: 10px 14px; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 10px; font-size: 14px; color: white; background: rgba(255, 255, 255, 0.1); transition: all 0.2s; }
.filter-group input:focus, .filter-group select:focus { outline: none; border-color: #22c55e; }
.filter-group select option { background: #14532d; }

/* Table */
.table-container { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; overflow: hidden; }
.table-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.table-title { font-size: 16px; font-weight: 600; color: white; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 14px 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255, 255, 255, 0.6); background: rgba(0, 0, 0, 0.2); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.data-table td { padding: 16px 20px; font-size: 14px; color: white; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.data-table tr:hover { background: rgba(255, 255, 255, 0.05); }
.data-table tr:last-child td { border-bottom: none; }

.cell-ref { font-weight: 600; color: #86efac; font-family: monospace; }
.cell-name { font-weight: 500; }
.cell-cnic { font-family: monospace; color: rgba(255, 255, 255, 0.8); }
.cell-amount { font-weight: 600; color: #22c55e; }
.cell-date { color: rgba(255, 255, 255, 0.7); font-size: 13px; }

/* Status Badge */
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.status-badge.pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.status-badge.approved { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.status-badge.rejected { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Action Button */
.action-btn { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
.action-btn.view { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.action-btn.view:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }

/* Pagination */
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.pagination-info { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.pagination-btns { display: flex; gap: 8px; }
.page-btn { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; background: rgba(255, 255, 255, 0.1); color: white; transition: all 0.2s; }
.page-btn:hover { background: rgba(255, 255, 255, 0.2); }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Empty State */
.empty-state { padding: 60px 24px; text-align: center; }
.empty-icon { width: 80px; height: 80px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 32px; color: rgba(255, 255, 255, 0.5); }
.empty-title { font-size: 18px; font-weight: 600; color: white; margin-bottom: 8px; }
.empty-text { font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* Loading */
.loading { padding: 60px; text-align: center; }
.spinner { width: 40px; height: 40px; border: 3px solid rgba(255, 255, 255, 0.2); border-top-color: #22c55e; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Review Section */
.review-section { display: none; }
.review-section.active { display: block; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.back-btn { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.7); font-size: 14px; cursor: pointer; transition: all 0.2s; }
.back-btn:hover { color: white; }

.review-card { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; margin-bottom: 24px; }
.review-card-header { padding: 20px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; }
.review-card-title { font-size: 16px; font-weight: 600; color: white; }
.review-card-body { padding: 24px; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255, 255, 255, 0.5); margin-bottom: 4px; }
.info-value { font-size: 14px; font-weight: 500; color: white; }
.info-value.highlight { color: #22c55e; font-size: 18px; }

.review-actions { display: flex; gap: 12px; margin-top: 24px; }
.approve-btn { padding: 14px 28px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; background: linear-gradient(135deg, #22c55e, #16a34a); color: white; }
.approve-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4); }
.reject-btn { padding: 14px 28px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.reject-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4); }

.notes-textarea { width: 100%; padding: 14px; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 12px; font-size: 14px; color: white; background: rgba(255, 255, 255, 0.1); margin-top: 16px; min-height: 100px; resize: vertical; }
.notes-textarea:focus { outline: none; border-color: #22c55e; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.login-modal { background: white; border-radius: 24px; width: 100%; max-width: 440px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3); animation: modalIn 0.3s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1); } }
.login-header { background: linear-gradient(135deg, #22c55e, #15803d); padding: 32px; text-align: center; position: relative; }
.login-header-icon { width: 70px; height: 70px; background: rgba(255, 255, 255, 0.2); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 28px; color: white; }
.login-header h2 { color: white; font-size: 24px; font-weight: 700; }
.login-header p { color: rgba(255, 255, 255, 0.8); font-size: 14px; margin-top: 8px; }
.login-body { padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.form-group input { width: 100%; padding: 14px 16px; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 15px; transition: all 0.2s; background: #f9fafb; }
.form-group input:focus { outline: none; border-color: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); background: white; }
.login-btn { width: 100%; padding: 16px; background: linear-gradient(135deg, #22c55e, #16a34a); color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4); }
.login-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.login-message { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: 14px; display: none; }
.login-message.show { display: block; }
.login-message.error { background: #fee2e2; color: #dc2626; }
.login-message.success { background: #d1fae5; color: #059669; }
.login-close { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, 0.2); border: none; color: white; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 18px; }

/* Footer - Shared Component */
.footer { position: relative; z-index: 10; padding: 15px; color: rgba(255, 255, 255, 0.7); font-size: 14px; text-align: center; }
.footer-content { max-width: 100vw; margin: 0 auto; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.footer-logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #22c55e, #15803d); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.footer-logo-icon i { font-size: 20px; color: white; }
.footer-logo-text { font-size: 20px; font-weight: 700; color: white; }
.footer-logo-text span { color: #86efac; }
.footer-company {
    display: inline;
    align-items: initial;
    justify-content: initial;
    margin-bottom: 0;
    font-size: larger;   
}
.footer-company span { color: rgba(255,255,255,0.8); font-weight: 500; }
.footer-company a { color: #22c55e; text-decoration: none; font-weight: 600; }
.footer-company a:hover { text-decoration: underline; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: #22c55e; }
.footer-contact { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-contact-item { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.7); }
.footer-contact-item i { color: #22c55e; }
.footer-contact-item a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-contact-item a:hover { color: #22c55e; }
.footer-copyright { border-top: 1px solid rgba(255, 255, 255, 0.9); padding-top: 20px; color: rgba(255, 255, 255, 0.5); }
.footer-copyright strong { color: #22c55e; }

/* Responsive */
@media (max-width: 1024px) { 
    .stats-grid { grid-template-columns: repeat(2, 1fr); } 
    .links-grid { grid-template-columns: repeat(2, 1fr); } 
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header { padding: 16px 20px; flex-direction: column; gap: 16px; }
    .main-content { padding: 10px; }
    .hero h1 { font-size: 36px; }
    .stats-grid, .links-grid, .info-grid { grid-template-columns: 1fr; }
    .navbar { flex-wrap: wrap; justify-content: center; }
    .user-panel { flex-direction: column; }
    .user-details { text-align: center; }
    .filter-row { flex-direction: column; }
    .filter-group { width: 100%; }
    .footer-contact { flex-direction: column; gap: 12px; }
}
