/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0d0d;
  --bg2:       #111111;
  --bg3:       #1a1a1a;
  --card:      #141414;
  --sidebar:   #0f0f0f;
  --border:    rgba(255,255,255,0.07);
  --green:     #39e75f;
  --green-dim: rgba(57,231,95,0.12);
  --green-dark:#2bc44e;
  --white:     #ffffff;
  --gray:      #888888;
  --gray2:     #444444;
  --red:       #e53935;
  --radius:    12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
}

/* ===== LOGIN ===== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse at 70% 50%, rgba(57,231,95,0.06) 0%, var(--bg) 60%);
}
.login-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}
.login-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.logo-leaf { font-size: 22px; }
.logo-brand { font-size: 17px; font-weight: 800; letter-spacing: 2px; color: var(--white); }
.logo-section { font-size: 11px; color: var(--gray); letter-spacing: 2px; margin-left: 4px; padding-top: 2px; }
.login-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.login-sub { color: var(--gray); font-size: 14px; margin-bottom: 28px; }

/* ===== APP LAYOUT ===== */
#app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 20;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.header-section-name { font-size: 12px; color: var(--gray); letter-spacing: 1.5px; text-transform: uppercase; margin-left: 4px; }

.app-body { display: flex; flex: 1; overflow: hidden; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: 180px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 8px;
  flex-shrink: 0;
}
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  color: var(--gray);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  width: 100%;
}
.sidebar-item:hover { background: var(--bg3); color: var(--white); }
.sidebar-item.active { background: var(--green-dim); color: var(--green); border: 1px solid rgba(57,231,95,0.2); }
.sidebar-item svg { flex-shrink: 0; }
.sidebar-footer { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }
.sidebar-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  color: var(--gray);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition);
}
.sidebar-account:hover { background: var(--bg3); color: var(--white); }

/* ===== MAIN ===== */
.main-content { flex: 1; overflow-y: auto; padding: 0; background: var(--bg); }
.content-section { padding: 32px 32px; }

/* ===== CONTENT WITH DECO ===== */
.content-with-deco { display: flex; gap: 0; align-items: flex-start; }
.content-area { flex: 1; min-width: 0; }

/* ===== DECO PANEL ===== */
.deco-panel {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  margin-top: -32px;
  height: calc(100vh - 52px);
  overflow: hidden;
}
.deco-plant-img {
  width: 100%;
  height: calc(100% - 120px);
  object-fit: cover;
  object-position: center top;
  display: block;
}
.tip-card {
  width: 100%;
  background: rgba(0,0,0,0.85);
  border-top: 1px solid var(--border);
  padding: 16px 18px;
  flex-shrink: 0;
}
.tip-title { font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.tip-text { font-size: 13px; color: #ccc; line-height: 1.5; }

/* ===== PAGE TITLES ===== */
.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-title { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.page-sub { color: var(--gray); font-size: 14px; }

/* ===== BUTTONS ===== */
.btn-green {
  background: var(--green);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.btn-green:hover { background: #4fff7a; }
.btn-green:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-full { width: 100%; justify-content: center; }

.btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}
.btn-ghost:hover { background: var(--bg3); }

.btn-danger {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-danger:hover { background: #c62828; }

.btn-logout {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--border);
  color: var(--gray);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.btn-logout:hover { border-color: var(--red); color: #ef9a9a; }

.btn-sm  { padding: 7px 14px !important; font-size: 13px !important; }
.btn-xs  { padding: 4px 10px !important; font-size: 12px !important; }
.btn-link {
  background: none; border: none; color: var(--green);
  font-size: 13px; cursor: pointer; padding: 0; font-family: inherit;
}
.btn-link:hover { color: #4fff7a; }

/* ===== PLANTS GRID ===== */
.plants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

/* ===== PLANT CARD ===== */
.plant-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}
.plant-card:hover { border-color: rgba(57,231,95,0.3); transform: translateY(-2px); }

.plant-card-image-placeholder {
  width: 100%; height: 155px;
  background: linear-gradient(135deg, #1a2a1a, #0d1a0d);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; position: relative; overflow: hidden;
}

.stage-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; z-index: 2; letter-spacing: 0.3px;
}
.stage-germinacion { background: #6a1b9a; color: #fff; }
.stage-vegetativo   { background: #1565c0; color: #fff; }
.stage-floracion    { background: #e65100; color: #fff; }
.stage-secado       { background: #4e342e; color: #fff; }
.stage-cosecha      { background: #1b5e20; color: #fff; }

.plant-card-body { padding: 12px 14px 0; }
.plant-card-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.plant-card-meta { font-size: 12px; color: var(--gray); margin-bottom: 10px; }

.harvest-alert {
  background: rgba(57,231,95,0.1); border: 1px solid rgba(57,231,95,0.25);
  border-radius: 6px; padding: 5px 10px; font-size: 12px; color: var(--green); margin-bottom: 8px;
}
.overdue-alert {
  background: rgba(229,57,53,0.1); border: 1px solid rgba(229,57,53,0.3);
  border-radius: 6px; padding: 5px 10px; font-size: 12px; color: #ef9a9a; margin-bottom: 8px;
}

.progress-label { font-size: 11px; color: var(--green); margin-bottom: 4px; }
.progress-bar-bg { background: var(--bg3); border-radius: 4px; height: 3px; margin-bottom: 12px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--green); border-radius: 4px; transition: width 0.4s ease; }

.plant-card-footer {
  border-top: 1px solid var(--border);
  padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-menu { position: relative; }
.card-menu-btn {
  background: none; border: none; color: var(--gray);
  cursor: pointer; padding: 4px 8px; border-radius: 6px; font-size: 16px; line-height: 1;
}
.card-menu-btn:hover { background: var(--bg3); color: var(--white); }
.card-menu-dropdown {
  position: absolute; right: 0; bottom: 100%;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px; min-width: 130px;
  z-index: 100; display: none;
}
.card-menu-dropdown.open { display: block; }
.card-menu-item {
  display: block; width: 100%; background: none; border: none;
  color: var(--white); font-size: 13px; padding: 8px 12px;
  text-align: left; cursor: pointer; border-radius: 6px; font-family: inherit;
}
.card-menu-item:hover { background: var(--bg3); }
.card-menu-item.danger { color: #ef9a9a; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg3); display: flex; align-items: center;
  justify-content: center; font-size: 36px; margin: 0 auto 18px;
}
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--gray); margin-bottom: 20px; font-size: 14px; }

/* ===== REMINDERS ===== */
.reminders-section {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-top: 8px;
}
.reminders-header { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.reminder-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border); gap: 12px;
}
.reminder-item:last-child { border-bottom: none; }
.reminder-info { display: flex; align-items: center; gap: 10px; }
.reminder-icon { font-size: 18px; }
.reminder-text { font-size: 14px; }
.reminder-date { font-size: 12px; color: var(--gray); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--gray); margin-bottom: 6px; font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-group input::placeholder { color: var(--gray2); }
.form-group select option { background: var(--bg2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-section-title {
  font-size: 11px; color: var(--gray); text-transform: uppercase;
  letter-spacing: 1px; margin: 18px 0 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.error-msg {
  background: rgba(229,57,53,0.1); border: 1px solid rgba(229,57,53,0.3);
  color: #ef9a9a; border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13px; margin-top: 8px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.modal-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; width: 100%;
  max-width: 520px; max-height: 90vh; overflow-y: auto;
}
.modal-box-wide { max-width: 700px; }
.modal-box-sm { max-width: 360px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-header h2 { font-size: 19px; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--gray);
  font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.modal-close:hover { background: var(--bg3); color: var(--white); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

/* ===== DROP ZONE ===== */
.drop-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 20px 16px; text-align: center; cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--bg3);
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--green); background: var(--green-dim); }
#drop-placeholder { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--gray); font-size: 13px; pointer-events: none; }
.drop-icon { font-size: 26px; }
.drop-hint { font-size: 11px; color: var(--gray2); }
#drop-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.drop-remove { margin-top: 8px; background: none; border: 1px solid var(--border); color: var(--gray); border-radius: var(--radius-sm); padding: 4px 12px; font-size: 12px; cursor: pointer; font-family: inherit; }
.drop-remove:hover { border-color: var(--red); color: #ef9a9a; }

/* ===== DETAIL MODAL TABS ===== */
.pd-modal-header { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 16px 20px; display: flex; align-items: flex-start; justify-content: space-between; }
.pd-modal-plant-name { font-size: 18px; font-weight: 700; }
.pd-modal-plant-meta { font-size: 13px; color: var(--gray); margin-top: 2px; }
.pd-tabs { display: flex; overflow-x: auto; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 0 16px; scrollbar-width: none; }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tab { background: none; border: none; border-bottom: 2px solid transparent; color: var(--gray); padding: 11px 13px; font-size: 13px; cursor: pointer; white-space: nowrap; font-family: inherit; transition: color var(--transition), border-color var(--transition); }
.pd-tab:hover { color: var(--white); }
.pd-tab.active { color: var(--green); border-bottom-color: var(--green); }

/* ===== DETAIL STAGES ===== */
.detail-stages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.detail-stage-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.detail-stage-card.active { border-color: var(--green); background: var(--green-dim); }
.detail-stage-name { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); margin-bottom: 3px; }
.detail-stage-card.active .detail-stage-name { color: var(--green); }
.detail-stage-date { font-size: 14px; font-weight: 700; }
.detail-stage-duration { font-size: 11px; color: var(--gray); margin-top: 2px; }
.detail-info-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-info-item label { font-size: 12px; color: var(--gray); display: block; margin-bottom: 2px; }
.detail-info-item span { font-size: 14px; font-weight: 500; }
.harvest-box { background: var(--green-dim); border: 1px solid rgba(57,231,95,0.25); border-radius: var(--radius-sm); padding: 16px; text-align: center; margin-bottom: 18px; }
.harvest-label { font-size: 11px; color: var(--green); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.harvest-date { font-size: 22px; font-weight: 700; color: #4fff7a; }
.harvest-days { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* ===== SECTION TITLE ===== */
.section-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }

/* ===== AT TOOLBAR ===== */
.at-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.at-form { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }

/* ===== TIMELINE ===== */
.at-timeline-list { display: flex; flex-direction: column; gap: 1px; }
.at-entry { display: flex; align-items: flex-start; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); gap: 12px; }
.at-entry:last-child { border-bottom: none; }
.at-entry-left { display: flex; align-items: flex-start; gap: 12px; }
.at-entry-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.at-entry-type { font-size: 14px; font-weight: 600; }
.at-entry-date { font-size: 12px; color: var(--gray); }
.at-entry-notes { font-size: 12px; color: var(--gray); margin-top: 2px; }
.at-entry-actions { display: flex; gap: 4px; flex-shrink: 0; }
.at-custom-types-section { margin-bottom: 14px; }
.at-custom-types-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.at-custom-type-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg3); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; font-size: 13px; }
.at-remove-type { background: none; border: none; color: var(--gray); cursor: pointer; padding: 0; font-size: 12px; }
.at-remove-type:hover { color: var(--red); }
.at-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.at-suggestion-chip { background: var(--green-dim); border: 1px solid rgba(57,231,95,0.3); border-radius: 20px; padding: 4px 12px; font-size: 12px; color: var(--green); cursor: pointer; }
.at-suggestion-chip:hover { background: rgba(57,231,95,0.2); }

/* ===== TASKS VIEW ===== */
.tv-section { margin-bottom: 20px; }
.tv-section-title { font-size: 12px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.tv-section-title.overdue { color: #ef9a9a; }
.tv-count { background: var(--bg3); border-radius: 20px; padding: 1px 8px; font-size: 12px; }
.tv-task { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 6px; gap: 12px; }
.tv-task-overdue { border-color: rgba(229,57,53,0.3); background: rgba(229,57,53,0.05); }
.tv-task-info { flex: 1; }
.tv-task-activity { font-size: 14px; font-weight: 600; }
.tv-task-meta { font-size: 12px; color: var(--gray); margin-top: 2px; }
.tv-task-actions { display: flex; gap: 4px; }

/* ===== STATS VIEW ===== */
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.sv-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.sv-label { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.sv-value { font-size: 24px; font-weight: 700; color: var(--green); }
.sv-value small { font-size: 14px; color: var(--gray); }
.sv-harvest-list { display: flex; flex-direction: column; gap: 4px; }
.sv-harvest-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--bg3); border-radius: var(--radius-sm); font-size: 13px; }
.sv-harvest-name { font-weight: 600; flex: 1; }
.sv-harvest-date { color: var(--gray); margin: 0 12px; }
.sv-harvest-grams { color: var(--green); font-weight: 600; }

/* ===== GENETICS CARD ===== */
.gc-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.gc-field { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.gc-field-label { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 4px; }
.gc-field-value { font-size: 15px; font-weight: 600; }
.gc-notes { font-size: 13px; color: var(--gray); line-height: 1.6; padding: 12px; background: var(--bg3); border-radius: var(--radius-sm); }

/* ===== PHOTO DIARY ===== */
.pd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.pd-thumb { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 1px solid var(--border); aspect-ratio: 1; background: var(--bg3); }
.pd-thumb:hover { border-color: var(--green); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb-date { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.7); font-size: 11px; padding: 4px 6px; color: #fff; }
.pd-upload-form { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.pd-empty { text-align: center; padding: 40px; color: var(--gray); }
.pd-loading { text-align: center; padding: 32px; color: var(--gray); }

/* ===== QUICK ACTIVITIES / TASKS ===== */
.at-quick-block, .tv-quick-block { margin-bottom: 4px; }
.at-quick-title, .tv-quick-title { font-size: 12px; color: var(--gray); margin-bottom: 10px; font-weight: 600; }
.at-quick-list, .tv-quick-list { display: flex; flex-direction: column; gap: 6px; }

.at-quick-item, .tv-quick-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  cursor: pointer; text-align: left; font-family: inherit;
  color: var(--white); transition: border-color var(--transition), background var(--transition); width: 100%;
}
.at-quick-item:hover, .tv-quick-item:hover { border-color: var(--green); background: var(--green-dim); }
.at-quick-item:disabled, .tv-quick-item:disabled { cursor: not-allowed; }
.at-quick-icon, .tv-quick-icon { font-size: 17px; flex-shrink: 0; }
.at-quick-type, .tv-quick-type { flex: 1; font-size: 13px; font-weight: 500; }
.at-quick-date, .tv-quick-date, .tv-quick-plant { font-size: 12px; color: var(--gray); flex-shrink: 0; }
.at-quick-save, .tv-quick-save { font-size: 12px; color: #000; font-weight: 700; flex-shrink: 0; background: var(--green); border-radius: 6px; padding: 3px 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .deco-panel { width: 200px; }
}
@media (max-width: 768px) {
  .deco-panel { display: none; }
  .sidebar { display: none; }
  .plants-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .content-section { padding: 20px 16px; }
  .detail-stages { grid-template-columns: 1fr 1fr; }
}

/* ===== LOGO IMAGE ===== */
.header-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

/* ===== BOTTOM NAV (mobile only, hidden on desktop) ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  z-index: 50;
  flex-direction: row;
  align-items: stretch;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--transition);
  padding: 6px 0;
}
.bottom-nav-item.active { color: var(--green); }
.bottom-nav-item svg { flex-shrink: 0; }

/* ===== TIP CARD MOBILE ===== */
.tip-card-mobile {
  display: none;
  background: var(--bg3);
  border: 1px solid rgba(57,231,95,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 20px;
  gap: 8px;
  align-items: flex-start;
}
.tip-card-mobile .tip-title {
  font-size: 13px; font-weight: 700; color: var(--green);
  white-space: nowrap; flex-shrink: 0;
}
.tip-card-mobile .tip-text { font-size: 13px; color: #ccc; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  /* Show bottom nav, hide sidebar */
  .bottom-nav { display: flex; }
  .sidebar { display: none; }
  .deco-panel { display: none; }

  /* Add padding for bottom nav */
  .main-content { padding-bottom: 68px; }

  /* Header */
  .app-header { padding: 0 16px; }
  .header-section-name { display: none; }
  .btn-logout { padding: 6px 10px; font-size: 12px; }
  .btn-logout span { display: none; }

  /* Content */
  .content-section { padding: 20px 16px; }
  .page-title { font-size: 22px; }

  /* Tip card mobile visible */
  .tip-card-mobile { display: flex; }

  /* Plants grid */
  .plants-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Modals full-screen on mobile */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    border-radius: var(--radius) var(--radius) 0 0;
    max-width: 100%;
    max-height: 92vh;
    width: 100%;
    padding: 24px 20px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .modal-box-sm {
    border-radius: var(--radius) var(--radius) 0 0;
    max-width: 100%;
  }
  .modal-box-wide {
    border-radius: var(--radius) var(--radius) 0 0;
    max-width: 100%;
    max-height: 96vh;
  }

  /* Detail tabs */
  .pd-tab { padding: 10px 10px; font-size: 12px; }
  .detail-stages { grid-template-columns: 1fr 1fr; }

  /* Stats */
  .sv-grid { grid-template-columns: 1fr 1fr; }
  .gc-fields { grid-template-columns: 1fr 1fr; }

  /* Quick items more compact */
  .at-quick-item, .tv-quick-item { padding: 8px 10px; }
  .at-quick-type, .tv-quick-type { font-size: 12px; }
}

@media (max-width: 380px) {
  .plants-grid { grid-template-columns: 1fr; }
  .sv-grid { grid-template-columns: 1fr; }
}
