/* assets/style.css — FINAL (readable) */

/* Root Variables (Category Colors get injected inline via shortcode) */
:root {
  --eco-font: 16px;
  --eco-radius: 16px;
  --eco-shadow: 0 6px 18px rgba(0,0,0,.08);
  --eco-calc: #1E88E5;
  --eco-bank: #2E7D32;
  --eco-fx: #F57C00;
  --eco-budget: #66BB6A;
  --eco-invest: #6A1B9A;
  --eco-tax: #D32F2F;
  --eco-market: #00838F;
  --eco-misc: #455A64;
}

/* Wrapper */
#eco-finance-tools {
  font-family: system-ui, -apple-system, Roboto, Arial, sans-serif;
  max-width: 1200px;
  margin: 20px auto;
  padding: 18px;
  background: #ffffff;
  border-radius: var(--eco-radius);
  box-shadow: var(--eco-shadow);
  font-size: var(--eco-font);
  color: #222;
}

/* Title + subtitle */
.eco-title {
  text-align: center;
  margin: 0 0 6px 0;
  font-size: 26px;
  font-weight: 700;
  color: #333;
}
.eco-sub {
  text-align: center;
  opacity: .7;
  margin-bottom: 18px;
}

/* Top Dropdown Controls */
.eco-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.eco-controls select {
  padding: 12px;
  border: 1px solid #d4d4d4;
  border-radius: var(--eco-radius);
  background: #fff;
  font-size: 15px;
}

/* Card */
.eco-card {
  background: #fff;
  border-radius: var(--eco-radius);
  box-shadow: var(--eco-shadow);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

/* Labels & Inputs inside tool host */
#eco-tool-host label {
  display: block;
  font-weight: 600;
  margin: 6px 0 4px 0;
}
#eco-tool-host input,
#eco-tool-host select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #d4d4d4;
  border-radius: var(--eco-radius);
  margin-bottom: 12px;
  font-size: 15px;
}

/* 2-column helper grid used by some tools (Expense/Budget) */
.eco-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Buttons */
.eco-btn {
  background: var(--eco-accent, #6A1B9A);
  color: #fff;
  padding: 11px 16px;
  border: none;
  border-radius: var(--eco-radius);
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
  width: 100%;
  margin-top: 6px;
}
.eco-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.eco-btn.ghost {
  background: transparent;
  border: 2px solid var(--eco-accent, #6A1B9A);
  color: var(--eco-accent, #6A1B9A);
  width: auto;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--eco-accent, #6A1B9A);
}

/* Table */
.eco-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
}
.eco-table th,
.eco-table td {
  border: 1px solid #e4e4e4;
  padding: 8px;
  text-align: left;
}

/* IFSC Finder layout (4 fields in a row on desktop) */
#ifsc_bank, #ifsc_state, #ifsc_dist, #ifsc_branch {
  display: inline-block;
  width: 24%;
  margin-right: 1%;
}
#ifsc_branch { margin-right: 0; }

/* Responsive */
@media (max-width: 900px){
  .eco-controls {grid-template-columns: 1fr;}
  .eco-grid-2 {grid-template-columns: 1fr;}
  #ifsc_bank, #ifsc_state, #ifsc_dist, #ifsc_branch {
    width: 100%;
    margin-right: 0;
  }
}
