/* ================================================================
   style.css - Premium Theme for Land Broker System
   ================================================================ */

/* ---------- 1. CSS Variables (Premium Light Theme) ---------- */
:root {
    --primary-gradient: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    --primary-blue: #1a2a6c;
    --primary-gold: #fdbb2d;
    --primary-red: #b21f1f;
    --bg-page: #f4f6f9;
    --bg-card: #ffffff;
    --text-primary: #1a2a6c;
    --text-secondary: #2d3748;
    --text-muted: #718096;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(26, 42, 108, 0.12);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
body.dark-mode {
    --bg-page: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ---------- 2. Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Rasa', serif;
    background: var(--bg-page);
    min-height: 100vh;
    padding: 15px 10px;
    color: var(--text-secondary);
    transition: background 0.3s, color 0.3s;
    /* અહીં display: flex કાઢી નાખ્યું છે જેથી મોડલ સાઈડ-બાય-સાઈડ ન ખૂલે */
}
a { text-decoration: none; color: inherit; }

/* ---------- 3. Container ---------- */
.container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto; /* કન્ટેનરને સેન્ટર કરવા માટે */
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 25px 20px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease;
}

/* ---------- 4. Navigation Bar & Buttons ---------- */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 12px;
}
.nav-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-brand i { color: var(--primary-gold); }
.nav-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 18px;
    border-radius: 20px;
    font-family: 'Rasa', serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    transition: var(--transition);
    line-height: 1;
    white-space: nowrap;
}
.nav-btn-primary { background: var(--primary-gradient); color: #ffffff !important; border: 1.5px solid transparent; box-shadow: 0 3px 10px rgba(26, 42, 108, 0.2); }
.nav-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(26, 42, 108, 0.3); }
.nav-btn-outline { background: #ffffff; color: var(--primary-blue) !important; border: 1.5px solid var(--primary-blue); }
.nav-btn-outline:hover { background: #f0f4ff; transform: translateY(-2px); }
.nav-btn-subtle { background: #f7fafc; color: var(--text-secondary) !important; border: 1.5px solid #cbd5e0; }
.nav-btn-subtle:hover { background: #edf2f7; color: var(--primary-blue) !important; transform: translateY(-2px); }

/* ---------- 5. Animations ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 6. Login Screen ---------- */
#loginScreen {
    max-width: 420px; margin: 40px auto; padding: 30px 25px;
    background: var(--bg-card); border-radius: var(--border-radius);
    box-shadow: var(--shadow); animation: fadeInUp 0.6s ease;
}
#loginScreen h1 {
    font-size: 32px; background: var(--primary-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-align: center; margin-bottom: 20px; font-weight: 700;
}
.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); font-size: 15px; }
.input-group input {
    width: 100%; padding: 14px 18px; border: 2px solid #e2e8f0; border-radius: 12px;
    font-family: 'Rasa', serif; font-size: 18px; outline: none;
    background: var(--bg-page); color: var(--text-primary); transition: var(--transition);
}
.input-group input:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1); }
.btn-login {
    width: 100%; padding: 16px; background: var(--primary-gradient); color: #fff;
    border: none; border-radius: 12px; font-size: 22px; font-weight: 700;
    cursor: pointer; transition: var(--transition); box-shadow: 0 4px 15px rgba(26, 42, 108, 0.3);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26, 42, 108, 0.4); }
.error-msg { color: var(--primary-red); margin-top: 10px; font-weight: 600; text-align: center; font-size: 15px; }
.home-link { margin-top: 15px; text-align: center; font-size: 15px; color: var(--text-muted); }
.home-link a { color: var(--text-muted); }
.home-link a:hover { color: var(--primary-blue); }
.demo-hint { margin-top: 20px; background: var(--bg-page); padding: 12px; border-radius: 10px; text-align: center; color: var(--text-muted); font-size: 15px; }
.demo-hint code { background: #e2e8f0; padding: 3px 10px; border-radius: 6px; font-weight: 600; color: var(--primary-blue); }

/* ---------- 7. Dashboard Header ---------- */
.dashboard-header { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #e2e8f0; }
@media (min-width: 600px) { .dashboard-header { flex-direction: row; justify-content: space-between; align-items: center; } }
.dashboard-header h2 { font-size: 24px; color: var(--text-primary); font-weight: 700; }
.dashboard-header h2 i { color: var(--primary-gold); margin-right: 8px; }
.header-actions { display: flex; gap: 10px; width: 100%; }
@media (min-width: 600px) { .header-actions { width: auto; } }
.header-actions button { flex: 1; padding: 10px 20px; border: none; border-radius: 30px; font-weight: 600; cursor: pointer; font-family: 'Rasa', serif; font-size: 15px; transition: var(--transition); }
@media (min-width: 600px) { .header-actions button { flex: none; } }
.btn-logout { background: var(--primary-red); color: #fff; }
.btn-logout:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(178, 31, 31, 0.3); }
.btn-primary { background: var(--primary-gradient); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(26, 42, 108, 0.3); }
.btn-success { background: #27ae60; color: #fff; }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3); }
.btn-danger { background: var(--primary-red); color: #fff; }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(178, 31, 31, 0.3); }
.btn-warning { background: var(--primary-gold); color: #1a2a6c; }
.btn-warning:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(253, 187, 45, 0.3); }

/* ---------- 8. Stats Cards (Super Admin Responsive Fix) ---------- */
.stats-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 25px; }
@media (min-width: 768px) { .stats-container { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stats-container { grid-template-columns: repeat(6, 1fr); } }
.stat-card { background: var(--bg-card); padding: 15px 10px; border-radius: 12px; border-left: 5px solid var(--primary-blue); text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-card .stat-number { font-size: 24px; font-weight: 700; color: var(--text-primary); line-height: 1.2; margin: 4px 0; }
.stat-card .stat-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.stat-card .stat-icon { font-size: 20px; margin-bottom: 2px; }
.stat-card.brokers { border-left-color: var(--primary-blue); }
.stat-card.active { border-left-color: #27ae60; }
.stat-card.pending { border-left-color: #f39c12; }
.stat-card.suspended { border-left-color: var(--primary-red); }
.stat-card.villages { border-left-color: #3498db; }
.stat-card.plans { border-left-color: #9b59b6; }

/* Old Stats (for Broker Dashboard compatibility) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-bottom: 25px; }
.stats .stat-card { padding: 18px 20px; border-left: 6px solid var(--primary-blue); }
.stats .stat-card .number { font-size: 32px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.stats .stat-card .label { font-size: 15px; color: var(--text-muted); font-weight: 600; }
.stats .stat-card.available { border-left-color: #27ae60; }
.stats .stat-card.sold { border-left-color: var(--primary-red); }
.stats .stat-card.today { border-left-color: var(--primary-gold); }

/* ---------- 9. Filter Bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 25px; padding: 15px 18px; background: var(--bg-page); border-radius: var(--border-radius); align-items: center; }
.filter-bar input, .filter-bar select { padding: 10px 16px; border: 2px solid #e2e8f0; border-radius: 30px; font-family: 'Rasa', serif; font-size: 16px; background: var(--bg-card); color: var(--text-secondary); outline: none; flex: 1 1 150px; min-width: 120px; transition: var(--transition); }
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1); }
.filter-bar .sort-group { display: flex; gap: 6px; }
.filter-bar .sort-group button { padding: 8px 16px; border: 2px solid #e2e8f0; border-radius: 30px; background: var(--bg-card); color: var(--text-secondary); cursor: pointer; font-family: 'Rasa', serif; font-size: 14px; font-weight: 600; transition: var(--transition); }
.filter-bar .sort-group button.active { background: var(--primary-gradient); color: #fff; border-color: var(--primary-blue); }
.filter-bar .clear-filters { padding: 10px 20px; background: var(--primary-red); color: #fff; border: none; border-radius: 30px; font-weight: 600; cursor: pointer; font-family: 'Rasa', serif; font-size: 15px; transition: var(--transition); }
.filter-bar .clear-filters:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(178, 31, 31, 0.3); }

/* ---------- 10. Add Plot Section ---------- */
.add-plot-section { background: var(--bg-page); padding: 20px; border-radius: var(--border-radius); margin-bottom: 25px; }
.add-plot-section h3 { margin-bottom: 15px; color: var(--text-primary); font-size: 22px; }
.add-plot-section h3 i { color: var(--primary-gold); margin-right: 8px; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; }
.form-row input, .form-row select, .form-row textarea { padding: 14px 16px; border: 2px solid #e2e8f0; border-radius: 12px; font-family: 'Rasa', serif; font-size: 17px; background: var(--bg-card); color: var(--text-secondary); outline: none; flex: 1 1 160px; transition: var(--transition); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1); }
.form-row textarea { flex: 1 1 100%; resize: vertical; min-height: 50px; }
.area-group { display: flex; flex: 1 1 200px; gap: 10px; }
.area-group input { flex: 2 1 100px; }
.area-group select { flex: 1 1 80px; cursor: pointer; }
.btn-add { padding: 14px 35px; background: var(--primary-gradient); color: #fff; border: none; border-radius: 12px; font-weight: 700; font-family: 'Rasa', serif; font-size: 20px; cursor: pointer; transition: var(--transition); }
.btn-add:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26, 42, 108, 0.3); }
.btn-add:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.note { font-size: 14px; color: var(--text-muted); margin-top: 10px; text-align: center; }

/* ---------- 11. Location Picker (Map) ---------- */
.location-picker-section { margin: 15px 0 10px 0; border: 2px solid #e2e8f0; border-radius: var(--border-radius); padding: 12px; background: var(--bg-card); }
.location-picker-section .picker-header { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; align-items: center; }
.location-picker-section .picker-header input { flex: 3 1 200px; padding: 10px 16px; border: 2px solid #e2e8f0; border-radius: 30px; font-family: 'Rasa', serif; font-size: 16px; outline: none; background: var(--bg-page); transition: var(--transition); }
.location-picker-section .picker-header input:focus { border-color: var(--primary-blue); }
.location-picker-section .picker-header button { padding: 10px 20px; background: var(--primary-gradient); color: #fff; border: none; border-radius: 30px; font-weight: 600; cursor: pointer; font-family: 'Rasa', serif; font-size: 16px; transition: var(--transition); }
.location-picker-section .picker-header button:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(26, 42, 108, 0.3); }
.location-picker-section .picker-header button.gps-btn { background: #27ae60; }
.location-picker-section .picker-header button.gps-btn:hover { box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3); }
#mapPicker { height: 250px; border-radius: 12px; border: 1px solid #e2e8f0; width: 100%; }
.selected-coords { font-size: 14px; color: var(--text-muted); margin-top: 6px; text-align: center; }

/* ---------- 12. Plot Cards (List) ---------- */
.plots-list { display: flex; flex-direction: column; gap: 15px; margin-top: 10px; }
.plot-card-item { background: var(--bg-card); border: 1px solid #e2e8f0; border-radius: var(--border-radius); padding: 18px 20px; box-shadow: var(--shadow); transition: var(--transition); animation: fadeInUp 0.5s ease; }
.plot-card-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.plot-card-item .row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.plot-card-item .survey-no { font-weight: 700; font-size: 20px; color: var(--text-primary); }
.plot-card-item .village-name { font-size: 17px; color: var(--text-secondary); }
.plot-card-item .details { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0; font-size: 16px; color: var(--text-secondary); }
.plot-card-item .details span { background: var(--bg-page); padding: 4px 12px; border-radius: 20px; }
.plot-card-item .price-tag { font-weight: 700; color: #27ae60; font-size: 20px; }
.plot-card-item .broker-tag { font-weight: 600; color: var(--primary-blue); }
.plot-card-item .status-badge { padding: 4px 14px; border-radius: 20px; font-weight: 700; font-size: 15px; display: inline-block; }
.status-available { background: #d4edda; color: #155724; }
.status-sold { background: #f8d7da; color: #721c24; }
.plot-card-item .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.action-btn { padding: 8px 18px; border: none; border-radius: 30px; font-weight: 600; cursor: pointer; font-family: 'Rasa', serif; font-size: 14px; transition: var(--transition); }
.action-btn:hover { transform: translateY(-2px); }
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-sold { background: #f39c12; color: #fff; }
.btn-edit { background: var(--primary-blue); color: #fff; }
.btn-delete { background: var(--primary-red); color: #fff; }
.btn-view { background: #e2e8f0; color: var(--text-secondary); }
.status-select { padding: 6px 12px; border-radius: 20px; border: 2px solid #e2e8f0; background: var(--bg-card); font-family: 'Rasa', serif; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ---------- 13. Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 25px; flex-wrap: wrap; }
.pagination button { padding: 8px 18px; border: 2px solid #e2e8f0; border-radius: 30px; background: var(--bg-card); color: var(--text-secondary); cursor: pointer; font-family: 'Rasa', serif; font-weight: 600; transition: var(--transition); }
.pagination button.active { background: var(--primary-gradient); color: #fff; border-color: var(--primary-blue); }
.pagination button:hover:not(.active) { background: #e2e8f0; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .info { font-size: 16px; color: var(--text-muted); }

/* ---------- 14. Tabs (Super Admin - Scrollable on Mobile) ---------- */
.tabs { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 5px; -webkit-overflow-scrolling: touch; border-bottom: 2px solid #e2e8f0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1; white-space: nowrap; padding: 12px 25px; border: none; background: transparent; font-weight: 700; font-size: 18px; cursor: pointer; border-bottom: 4px solid transparent; transition: var(--transition); color: var(--text-muted); font-family: 'Rasa', serif; }
.tabs button.active { border-bottom-color: var(--primary-blue); color: var(--text-primary); }
.tabs button:hover { color: var(--text-primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---------- 15. List Items (Brokers & Villages - Mobile Fix) ---------- */
.list-item { display: flex; flex-direction: column; gap: 12px; background: var(--bg-card); padding: 15px; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 12px; border: 1px solid #e2e8f0; transition: var(--transition); }
.list-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
@media (min-width: 600px) { .list-item { flex-direction: row; align-items: center; justify-content: space-between; } }
.list-item .info { flex: 1; font-size: 15px; line-height: 1.5; word-break: break-word; }
.broker-name { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.broker-contact { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.broker-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.status-active { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-suspended { background: #f8d7da; color: #721c24; }
.badge-plan { background: #e0e7ff; color: #3730a3; }
.badge-date { background: #f1f5f9; color: #475569; }
body.dark-mode .status-active { background: #064e3b; color: #a7f3d0; }
body.dark-mode .status-pending { background: #78350f; color: #fde68a; }
body.dark-mode .status-suspended { background: #7f1d1d; color: #fca5a5; }
body.dark-mode .badge-plan { background: #312e81; color: #c7d2fe; }
body.dark-mode .badge-date { background: #334155; color: #cbd5e1; }
.list-item .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.list-item .actions button { padding: 8px 15px; font-size: 14px; font-weight: 600; border: none; border-radius: 20px; cursor: pointer; font-family: 'Rasa', serif; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: var(--transition); }
.list-item .actions button:hover { transform: translateY(-2px); }
.btn-activate { background: #27ae60; color: #fff; }
.btn-suspend { background: #f39c12; color: #fff; }
.btn-edit { background: var(--primary-blue); color: #fff; }
.btn-del { background: var(--primary-red); color: #fff; }

/* ---------- 16. Plans Grid ---------- */
.plan-card-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
@media (min-width: 600px) { .plan-card-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.plan-card { background: var(--bg-card); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); border: 2px solid transparent; transition: var(--transition); display: flex; flex-direction: column; }
.plan-card.inactive { opacity: 0.7; border-color: #e2e8f0; }
.plan-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.plan-name { font-size: 20px; color: var(--text-primary); margin: 0; }
.plan-price { font-size: 28px; font-weight: 700; color: #27ae60; margin-bottom: 15px; }
.plan-price small { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.plan-details { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.plan-features { list-style: none; padding: 0; margin: 0 0 15px 0; }
.plan-features li { font-size: 14px; color: var(--text-secondary); padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.plan-features li::before { content: '✅'; font-size: 12px; }
.plan-actions { display: flex; gap: 8px; margin-top: auto; }
.plan-actions button { flex: 1; padding: 10px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-family: 'Rasa', serif; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: var(--transition); }
.plan-actions button:hover { transform: translateY(-2px); }
.btn-edit-plan { background: #3498db; color: #fff; }
.btn-toggle-plan { background: #f39c12; color: #fff; }
.btn-delete-plan { background: var(--primary-red); color: #fff; flex: 0 0 auto !important; padding: 10px 15px !important; }

/* ---------- 17. Modals (Force Overlay to fix side-by-side bug) ---------- */
.modal-overlay, .plan-modal-overlay, .confirm-modal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 999999 !important;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow-y: auto;
}
.modal-overlay.active, .plan-modal-overlay.active, .confirm-modal-overlay.active { display: flex !important; }
.modal-box, .plan-modal-box, .confirm-modal-box {
    background: var(--bg-card); border-radius: 16px; padding: 25px 20px;
    width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4); animation: slideUp 0.3s ease-out;
    position: relative;
}
.modal-box h3, .plan-modal-box h3, .confirm-modal-box h3 { color: var(--text-primary); margin: 0 0 20px 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border: 2px solid #e2e8f0; border-radius: 8px; font-family: 'Rasa', serif; font-size: 15px; background: var(--bg-page); color: var(--text-primary); outline: none; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 400px) { .form-row-2 { grid-template-columns: 1fr; } }
.modal-actions { display: flex; gap: 10px; margin-top: 25px; }
.modal-actions button { flex: 1; padding: 14px; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: 'Rasa', serif; transition: var(--transition); }
.modal-actions button:hover { transform: translateY(-2px); }
.btn-cancel { background: #95a5a6; color: #fff; }
.btn-save { background: #27ae60; color: #fff; }
.btn-confirm { background: var(--primary-red); color: #fff; }
.password-group { position: relative; }
.password-toggle { position: absolute; right: 12px; top: 40px; cursor: pointer; color: var(--text-muted); background: none; border: none; font-size: 16px; }

/* ---------- 18. Toast ---------- */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; max-width: 380px; width: 100%; }
.toast { background: #2d3748; color: #fff; padding: 16px 22px; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 12px; animation: slideInRight 0.4s ease; font-size: 16px; font-weight: 500; }
.toast.success { background: #27ae60; }
.toast.error { background: var(--primary-red); }
.toast.warning { background: #f39c12; }
.toast.info { background: var(--primary-blue); }
.toast .toast-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; opacity: 0.7; }
.toast .toast-close:hover { opacity: 1; }
.empty-msg { text-align: center; padding: 30px; color: var(--text-muted); font-size: 16px; background: var(--bg-page); border-radius: 12px; }

/* ---------- 19. Responsive Tweaks (Mobile) ---------- */
@media (max-width: 768px) {
    .container { padding: 15px 10px; }
    .dashboard-header h2 { font-size: 20px; }
    .stat-card .stat-number { font-size: 22px; }
    .add-form { flex-direction: column; align-items: stretch; }
    .add-form input, .add-form textarea, .add-form button { width: 100%; }
    .search-bar { flex-direction: column; align-items: stretch; }
    .search-bar input, .search-bar select { width: 100%; }
    .tabs button { font-size: 14px; padding: 10px 15px; }
    .modal-box, .plan-modal-box, .confirm-modal-box { padding: 20px 15px; }
    .toast-container { max-width: 90%; right: 5%; top: 10px; }
    .form-row input, .form-row select, .form-row textarea { flex: 1 1 100%; }
    .area-group { flex: 1 1 100%; }
    .btn-add { flex: 1 1 100%; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar input, .filter-bar select { flex: 1 1 auto; }
    .filter-bar .sort-group { justify-content: center; }
    .plot-card-item .row { flex-direction: column; align-items: stretch; }
}
@media (max-width: 400px) {
    .stat-card .stat-number { font-size: 20px; }
    .action-btn { font-size: 13px; padding: 6px 12px; }
    .modal-box h3 { font-size: 20px; }
}
