/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Mobile Status Bar */
.status-bar {
    background-color: white;
    height: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.time {
    font-weight: bold;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.network {
    font-size: 10px;
    line-height: 1;
    text-align: center;
}

.signal-bars {
    display: flex;
    gap: 1px;
    align-items: end;
}

.bar {
    width: 3px;
    height: 4px;
    background-color: #ccc;
    border-radius: 1px;
}

.bar:nth-child(2) {
    height: 6px;
}

.bar:nth-child(3) {
    height: 8px;
}

.bar:nth-child(4) {
    height: 10px;
}

.bar.active {
    background-color: #333;
}

.battery {
    width: 24px;
    height: 12px;
    border: 1px solid #333;
    border-radius: 2px;
    position: relative;
    background-color: white;
}

.battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 3px;
    width: 2px;
    height: 6px;
    background-color: #333;
    border-radius: 0 1px 1px 0;
}

.battery-level {
    height: 100%;
    width: 60%;
    background-color: #333;
    border-radius: 1px;
}

/* Browser Bar */
.browser-bar {
    background-color: white;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    color: #333;
}

.url-bar {
    flex: 1;
    background-color: #f1f3f4;
    height: 32px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    font-size: 14px;
}

.tab-count {
    width: 24px;
    height: 24px;
    border: 1px solid #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* App Container */
.app-container {
    max-width: 100%;
    background-color: white;
}

/* Header */
.app-header {
    background: #adc737;
    color: white;
    padding: 16px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 24px;
    color: #fff;
}

.brand-text h1 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.ai-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
}

.header-buttons {
    display: flex;
    gap: 8px;
}

.btn-admin,
.btn-logout {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.btn-admin:hover,
.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.tagline {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

/* Navigation Tabs */
.nav-tabs-container {
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    
}

.custom-tabs {
    border-bottom: none;
    padding: 0 16px;
}

.custom-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
    padding: 12px 8px;
    margin-right: 16px;
    position: relative;
}

.custom-tabs .nav-link i {
    font-size: 14px;
    margin-right: 4px;
    color: #abc737;
}

.custom-tabs .nav-link.active {
    color: #abc737;
    background-color: transparent;
    border-bottom: 2px solid #abc737;
}

/* Content Sections */
.add-farmer-section,
.registered-farmers-section {
    padding: 20px 16px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #abc737;
    font-size: 14px;
}

/* Form Styles */
.farmer-form {
    background-color: white;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
    display: block;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    background-color: #fff;
}

.form-control::placeholder {
    color: #adb5bd;
    font-size: 14px;
}

.form-control:focus {
    border-color: #abc737;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.btn-add-farmer {
    background-color: #abc737;
    border: none;
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.15s ease-in-out;
}

.btn-add-farmer:hover {
    background-color: #abc737;
}

/* Registered Farmers */
.registered-farmers-section {
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.farmer-item {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.farmer-info {
    flex: 1;
}

.farmer-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.farmer-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #6c757d;
}

.farmer-actions {
    display: flex;
    gap: 12px;
    font-size: 16px;
}

.farmer-actions i {
    cursor: pointer;
    transition: opacity 0.15s ease-in-out;
}

.farmer-actions i:hover {
    opacity: 0.7;
}
.large-textarea {
    width: 400px;
    height: 150px;
    padding: 10px;
    font-size: 16px;
    resize: both;
    overflow: scroll;
  }
/* Responsive */
@media (max-width: 576px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .header-buttons {
        align-self: flex-end;
    }
    
    .custom-tabs .nav-link {
        margin-right: 8px;
        padding: 12px 6px;
    }
    
    .farmer-details {
        flex-direction: column;
        gap: 4px;
    }
}

/* Tab content padding */
.tab-pane {
    min-height: calc(100vh - 200px);
}

.tab-pane .p-4 h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* ===== ADMIN SIDEBAR LAYOUT (NEW) ===== */

.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #adc737;
    flex-shrink: 0;
}

/* Logo area stays white */
.sidebar-logo {
    background: #ffffff;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-logo img {
    width: 80%;
    max-width: 180px;
}

/* Sidebar menu */
.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #4b733a;
    color: #fff;
}
sidebar-menu i{
    color: #abc737;
}

.icon{
   color: #abc737; 
}
/* Main content */
.main-content {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    overflow-x: hidden;
}

