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

body {
  font-family: 'Montserrat', sans-serif;
  background: #f5f7f6;
  margin: 0;
}

/* Sidebar */
.sidebar {
  width: 260px;
  height: 100vh;
  background: #fff;
  padding: 20px;
  
  position: fixed;
  top: 0;
  left: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border-right: 1px solid #eee;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.brand-logo {
  width: 50px;
}

.brand-title {
  font-weight: 700;
  color: #2E6F40;
  font-size: 18px;
}

.brand-sub {
  font-size: 12px;
  color: #777;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 10px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 30px;
  text-decoration: none;
  color: #343E45;
  font-weight: 500;
  transition: 0.2s;
}

.sidebar-nav li.active a {
  background: #2E6F40;
  color: #fff;
}

.sidebar-nav a:hover {
  background: #f0f4f2;
}

/* Footer */
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 100px;
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.admin-name {
  font-weight: 600;
}

.admin-role {
  font-size: 12px;
  color: #888;
}

.main-content {
    margin-left: 300px;
     padding: 30px;
}

.dashboard-header h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.card-title {
  font-size: 14px;
  color: #888;
}

.card-value {
  font-size: 28px;
  font-weight: 700;
  color: #343E45;
}

/* Toggle button */
.sidebar-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  margin-bottom: 10px;
}

/* Smooth transition */
.sidebar {
  transition: width 0.3s ease;
}

/* Collapsed state */
.sidebar.collapsed {
  width: 80px;
  padding: 20px 10px;
}

/* Hide text when collapsed */
.sidebar.collapsed .brand-title,
.sidebar.collapsed .brand-sub,
.sidebar.collapsed .admin-name,
.sidebar.collapsed .admin-role {
  display: none;
}

/* Center logo when collapsed */
.sidebar.collapsed .sidebar-brand {
  justify-content: center;
}

/* Menu links */
.sidebar.collapsed .sidebar-nav a {
  justify-content: center;
}

/* Hide text labels */
.sidebar.collapsed .sidebar-nav a span {
  display: none;
}



/* Background */
.login-body {
    margin: 0;
    background: url('/rekina-admin/assets/Images/loginbg.png') no-repeat center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MAIN CARD */
.main-card {
    position: relative;
    display: flex;
    width: 950px;
    padding: 20px;
    border-radius: 20px 20px 0 20px; /* bottom-right = 0 */
    backdrop-filter: blur(25px);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    gap: 20px;
}

/* FLOATING LOGO */
.floating-logo {
    position: absolute;
    top: -35px;
    left: 25%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-logo img {
    width: 40px;
}

/* INNER CARD */
.inner-card {
    width: 50%;
    padding: 50px 30px 30px;
    border-radius: 20px 20px 0 20px; /* bottom-right = 0 */
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
}

/* RIGHT SIDE */
.right-pane {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrap {
    width: 100%;
    height: 100%;
    padding: 10px; /* THIS creates the gap from edges */
}

.image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 14px 45px 14px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
}

.input-group img {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
}

/* Actions */
.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-actions button {
    background: #2e7d32;
    border: none;
    color: #fff;
    padding: 10px 22px;
    border-radius: 20px;
}

/* Social */
.social-login {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}
.social-login img {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.15);
    padding: 8px;
    border-radius: 50%;
}

/* RIGHT SIDE */
.login-right {
    width: 50%;
}

.login-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-glass {
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.login-actions button:hover {
    background: #388e3c;
}

/* Third Row */
.dashboard-third-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

/* Products Approval Card */
.products-approval-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(46, 111, 64, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.products-approval-card .card-header {
    padding: 20px;
    border-bottom: 1px solid rgba(46, 111, 64, 0.1);
    background: #fafbfa;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.products-approval-card .card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #2E6F40;
    margin: 0;
    display: flex;
    align-items: center;
}

.view-all-btn {
    padding: 8px 16px;
    background: transparent;
    color: #2E6F40;
    border: 1px solid #2E6F40;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.view-all-btn:hover {
    background: #2E6F40;
    color: white;
}

.products-scroll-container {
    padding: 16px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    min-height: 200px;
}

.products-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.products-scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.products-scroll-container::-webkit-scrollbar-thumb {
    background: #2E6F40;
    border-radius: 3px;
}

.product-card {
    flex-shrink: 0;
    width: 160px;
    background: #fafbfa;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(46, 111, 64, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(46, 111, 64, 0.15);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.product-image-placeholder {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E6F40;
    font-size: 32px;
}

.product-name {
    font-weight: 600;
    color: #343E45;
    font-size: 14px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    color: #2E6F40;
    font-weight: 700;
    font-size: 16px;
}

/* Commission Card */
.commission-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(46, 111, 64, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.commission-card .card-header {
    padding: 20px;
    border-bottom: 1px solid rgba(46, 111, 64, 0.1);
    background: #fafbfa;
}

.commission-card .card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #2E6F40;
    margin: 0;
    display: flex;
    align-items: center;
}

.commission-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.commission-item {
    margin-bottom: 20px;
}

.commission-item:last-child {
    margin-bottom: 0;
}

.commission-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.commission-label {
    font-size: 14px;
    font-weight: 500;
    color: #343E45;
}

.commission-value {
    font-size: 14px;
    font-weight: 600;
    color: #2E6F40;
}

.commission-percentage {
    font-size: 12px;
    color: #8FCF5B;
    margin-left: 6px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2E6F40 0%, #8FCF5B 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.commission-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(46, 111, 64, 0.1);
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.commission-total-label {
    color: #343E45;
    font-size: 16px;
}

.commission-total-value {
    color: #2E6F40;
    font-size: 20px;
}

/* Products Modal */
.modal-large {
    max-width: 800px !important;
    max-height: 80vh;
}

.modal-actions {
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 16px;
}

.selected-count {
    margin-left: auto;
    font-size: 13px;
    color: #666;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
}

.product-checkbox-card {
    background: #fafbfa;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(46, 111, 64, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.product-checkbox-card:hover {
    box-shadow: 0 4px 12px rgba(46, 111, 64, 0.15);
}

.product-checkbox-card.selected {
    border: 2px solid #2E6F40;
    background: #f0f8f0;
}

.product-checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.btn-approve:disabled,
.btn-reject:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-third-row {
        grid-template-columns: 1fr;
    }
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid rgba(46, 111, 64, 0.1);
    margin-bottom: 16px;
    padding: 0 4px;
}

.modal-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s;
    position: relative;
}

.modal-tab:hover {
    color: #2E6F40;
    background: rgba(46, 111, 64, 0.05);
}

.modal-tab.active {
    color: #2E6F40;
}

.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2E6F40;
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
}

/* Products Filter Bar */
.products-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 4px;
}

.products-filter-bar .search-input {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
}

.products-filter-bar .filter-select {
    min-width: 150px;
}

/* Product Detail Container */
.product-detail-container {
    padding: 10px;
}

.product-detail-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.product-detail-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.product-detail-info {
    flex: 1;
}

.product-detail-name {
    font-size: 24px;
    font-weight: 700;
    color: #343E45;
    margin-bottom: 8px;
}

.product-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: #2E6F40;
    margin-bottom: 16px;
}

.product-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 14px;
    color: #343E45;
    font-weight: 500;
}

.product-detail-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(46, 111, 64, 0.1);
}

.product-detail-description h4 {
    font-size: 16px;
    font-weight: 600;
    color: #343E45;
    margin-bottom: 12px;
}

.product-detail-description p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.product-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Status Badge */
.status-badge.approved {
    background: #2E6F40;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge.rejected {
    background: #343E45;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge.pending {
    background: #8FCF5B;
    color: #343E45;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* verification styles  */
/* View All Button */
.view-all-btn {
    padding: 4px 12px;
    background: transparent;
    color: #2E6F40;
    border: 1px solid #2E6F40;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.view-all-btn:hover {
    background: #2E6F40;
    color: white;
}

/* Tabs */
.modal-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid rgba(46, 111, 64, 0.1);
    margin-bottom: 20px;
    padding: 0 4px;
}

.modal-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s;
    position: relative;
}

.modal-tab:hover {
    color: #2E6F40;
    background: rgba(46, 111, 64, 0.05);
}

.modal-tab.active {
    color: #2E6F40;
}

.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2E6F40;
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
}

/* Documents Table */
.documents-table {
    width: 100%;
    border-collapse: collapse;
}

.documents-table th {
    padding: 12px;
    text-align: left;
    background: #fafbfa;
    border-bottom: 2px solid #8FCF5B;
    font-size: 13px;
    font-weight: 600;
    color: #343E45;
}

.documents-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.documents-table .btn-view-doc {
    padding: 4px 12px;
    background: white;
    color: #2E6F40;
    border: 1px solid #2E6F40;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.documents-table .btn-view-doc:hover {
    background: #2E6F40;
    color: white;
}

/* Expert Profile Header */
.expert-profile-header {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(46, 111, 64, 0.1);
}

.expert-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E6F40 0%, #499545 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    flex-shrink: 0;
}

.expert-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.expert-info-large {
    flex: 1;
}

.expert-name-large {
    font-size: 20px;
    font-weight: 700;
    color: #343E45;
    margin-bottom: 8px;
}

.expert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}

.expert-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.status-badge-large {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-badge-large.pending {
    background: #8FCF5B;
    color: #343E45;
}

/* Verification List Container */
.verification-list-container {
    max-height: 500px;
    overflow-y: auto;
}

/* Farm Details */
.farm-details {
    padding: 10px;
}

.farm-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.farm-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.farm-info-item {
    display: flex;
    flex-direction: column;
}

.farm-info-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.farm-info-value {
    font-size: 14px;
    color: #343E45;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   Shared page layout — used by marketplace, payments, community,
   reports, advertisements and all inner pages
   ═══════════════════════════════════════════════════════════════ */

/* ── Page container & header ─────────────────────────────────── */
.ads-container { padding: 24px 32px; }
.ads-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 28px; font-weight: 700; color: #343E45; margin: 0; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Stats grid ───────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.stat-card { background: white; border-radius: 16px; padding: 24px; display: flex; align-items: center; gap: 16px; border: 1px solid rgba(46,111,64,0.15); transition: box-shadow .2s; }
.stat-card:hover { box-shadow: 0 4px 20px rgba(46,111,64,0.12); }
.stat-icon { width: 56px; height: 56px; background: linear-gradient(135deg, #2E6F40, #499545); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.stat-value { font-size: 30px; font-weight: 700; color: #343E45; line-height: 1; }
.stat-label { font-size: 13px; color: #666; margin-top: 4px; }

/* ── Card containers ──────────────────────────────────────────── */
.card { background: white; border-radius: 16px; border: 1px solid rgba(46,111,64,0.15); overflow: hidden; margin-bottom: 24px; }
.card-header { padding: 18px 20px; border-bottom: 1px solid rgba(46,111,64,0.1); background: #fafbfa; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header h2 { font-size: 17px; font-weight: 600; color: #2E6F40; margin: 0; }
.card-body { padding: 20px; }

/* ── Tabs ─────────────────────────────────────────────────────── */
.page-tabs { display: flex; gap: 4px; border-bottom: 2px solid rgba(46,111,64,0.1); margin-bottom: 20px; flex-wrap: wrap; }
.page-tab { padding: 10px 18px; background: none; border: none; cursor: pointer; font-size: 14px; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .15s; }
.page-tab:hover { color: #2E6F40; }
.page-tab.active { color: #2E6F40; border-bottom-color: #2E6F40; font-weight: 600; }
.page-tab-content { display: none; }
.page-tab-content.active { display: block; }
.tab-badge { display: inline-block; background: #e65100; color: white; border-radius: 10px; padding: 1px 6px; font-size: 11px; margin-left: 4px; }

/* ── Tables ───────────────────────────────────────────────────── */
.table-container { overflow-x: auto; max-height: 520px; overflow-y: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th { padding: 12px 14px; background: #fafbfa; border-bottom: 2px solid #8FCF5B; font-size: 12px; font-weight: 600; color: #343E45; position: sticky; top: 0; text-align: left; white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; font-size: 13px; color: #343E45; vertical-align: middle; }
.data-table tr:hover td { background: #f9fdf9; }
.data-table .empty-row td { text-align: center; padding: 40px; color: #aaa; }

/* ── Filter bar ───────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px 20px; background: #fafbfa; border-bottom: 1px solid rgba(46,111,64,0.1); }
.filter-select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; background: white; min-width: 130px; }
.filter-input  { padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; min-width: 180px; flex: 1; }
.filter-select:focus, .filter-input:focus { outline: none; border-color: #2E6F40; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-primary   { padding: 9px 20px; background: #2E6F40; color: white; border: none; border-radius: 25px; cursor: pointer; font-size: 14px; font-weight: 600; transition: background .15s; }
.btn-primary:hover { background: #255934; }
.btn-secondary { padding: 9px 20px; background: white; color: #555; border: 1px solid #ddd; border-radius: 25px; cursor: pointer; font-size: 14px; }
.btn-secondary:hover { background: #f5f5f5; }
.btn-approve { padding: 5px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; background: #2E6F40; color: white; border: none; }
.btn-reject  { padding: 5px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; background: white; color: #d32f2f; border: 1px solid #d32f2f; }
.btn-pause   { padding: 5px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; background: white; color: #e65100; border: 1px solid #e65100; }
.btn-view    { padding: 5px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; background: #f0f4f2; color: #2E6F40; border: 1px solid rgba(46,111,64,0.3); }
.btn-danger  { padding: 9px 20px; background: #d32f2f; color: white; border: none; border-radius: 25px; cursor: pointer; font-size: 14px; }
.btn-sm      { padding: 4px 12px; font-size: 12px; }
button:disabled { opacity: .5; cursor: not-allowed; }

/* ── Status badges ────────────────────────────────────────────── */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-success  { background: #e8f5e9; color: #2E6F40; }
.badge-warning  { background: #fff3e0; color: #e65100; }
.badge-danger   { background: #ffebee; color: #d32f2f; }
.badge-info     { background: #e3f2fd; color: #1565c0; }
.badge-muted    { background: #f5f5f5; color: #777; }

/* ── Modals ───────────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.48); z-index: 2000; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal-box { background: white; border-radius: 16px; width: 90%; max-width: 560px; max-height: 90vh; overflow: auto; }
.modal-box.modal-lg { max-width: 760px; }
.modal-box.modal-xl { max-width: 1020px; }
.modal-head { padding: 18px 20px; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: white; z-index: 1; }
.modal-head h3 { font-size: 18px; font-weight: 700; color: #343E45; margin: 0; }
.modal-body   { padding: 20px; }
.modal-foot   { padding: 14px 20px; border-top: 1px solid #eee; display: flex; justify-content: flex-end; gap: 12px; }
.modal-close  { background: none; border: none; font-size: 24px; cursor: pointer; color: #666; line-height: 1; padding: 0; }

/* ── Forms ────────────────────────────────────────────────────── */
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #343E45; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.form-control:focus { outline: none; border-color: #2E6F40; box-shadow: 0 0 0 3px rgba(46,111,64,.1); }

/* ── Profile cell (table avatar + name) ──────────────────────── */
.profile-cell { display: flex; align-items: center; gap: 10px; }
.avatar-circle { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#2E6F40,#499545); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; overflow: hidden; }
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── Loading / empty states ───────────────────────────────────── */
.loading-state { text-align: center; padding: 48px 20px; color: #aaa; font-size: 14px; }
.empty-state   { text-align: center; padding: 48px 20px; color: #aaa; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ── Charts ───────────────────────────────────────────────────── */
.chart-wrap { position: relative; height: 280px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1200px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px)  { .ads-container { padding: 14px 16px; } .stats-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .filter-bar { flex-direction: column; align-items: stretch; } }

/* ── Table variants (income / chart cards) ────────────────────── */
.income-table-container { overflow-x: auto; max-height: 480px; overflow-y: auto; }
.income-table { width: 100%; border-collapse: collapse; }
.income-table th { padding: 12px 14px; background: #fafbfa; border-bottom: 2px solid #8FCF5B; font-size: 12px; font-weight: 600; color: #343E45; position: sticky; top: 0; text-align: left; }
.income-table td { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; font-size: 13px; color: #343E45; vertical-align: middle; }
.income-table tr:hover td { background: #f9fdf9; }
.loading-cell { text-align: center; padding: 40px; color: #aaa; font-size: 14px; }

.income-section, .chart-card { background: white; border-radius: 16px; border: 1px solid rgba(46,111,64,0.15); overflow: hidden; margin-bottom: 24px; }
.chart-container { padding: 20px; position: relative; height: 280px; }

/* ── Stat content wrapper ─────────────────────────────────────── */
.stat-content { flex: 1; min-width: 0; }
