/* ==========================================================================
   CSS Custom Properties & Design System
   ========================================================================== */
:root {
  --bg-app: #090a0f;
  --bg-sidebar: #0f111a;
  --bg-card: rgba(20, 22, 33, 0.7);
  --bg-input: #151722;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #00ffff;
  
  --text-main: #f1f2f6;
  --text-muted: #8b92b6;
  --text-dark: #12131a;
  
  --primary-gradient: linear-gradient(135deg, #8A2BE2 0%, #00FFFF 100%);
  --accent-purple: #9c27b0;
  --accent-cyan: #00e5ff;
  --accent-blue: #2979ff;
  --accent-green: #00e676;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 15px rgba(0, 255, 255, 0.15);
  
  --font-display: 'Outfit', 'Inter', 'Noto Sans JP', sans-serif;
  --font-body: 'Inter', 'Noto Sans JP', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* ==========================================================================
   Base Elements Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* App Layout Grid */
.app-container {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 100vh;
}

@media (max-width: 1100px) {
  .app-container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

/* ==========================================================================
   Sidebar Styles (Inputs)
   ========================================================================== */
.sidebar {
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  max-height: 100vh;
}

/* Logo Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.logo-icon {
  background: var(--primary-gradient);
  color: #fff;
  font-size: 20px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.brand h1 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand .subtext {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Cards style (glassmorphism look) */
.section-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.section-card:hover {
  border-color: rgba(0, 255, 255, 0.15);
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 8px;
}

/* Inputs & Form layout */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.input-group {
  margin-bottom: 14px;
}

.input-group:last-child {
  margin-bottom: 0;
}

.input-group label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

input[type="number"],
input[type="text"],
input[type="url"],
select,
textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

input[type="number"] {
  text-align: right;
  padding-right: 48px; /* Room for unit label */
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.15);
}

.unit {
  position: absolute;
  right: 14px;
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
  font-weight: 500;
}

/* Input layout with side button */
.input-with-btn {
  display: flex;
  gap: 8px;
}

.input-with-btn input {
  flex: 1;
}

/* Buttons */
button {
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  padding: 10px 18px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 255, 255, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 10px 18px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-text {
  background: none;
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-text:hover {
  color: #ff5252;
}

.w-full {
  width: 100%;
}

/* Accordion Tab Styles */
.import-tabs {
  display: flex;
  margin-top: 14px;
  border-bottom: 1px solid var(--border-color);
}

.tab-link {
  background: none;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 11px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}

.tab-link.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  font-weight: 600;
}

.tab-content {
  display: none;
  padding-top: 14px;
}

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

.info-alert {
  background-color: rgba(41, 121, 255, 0.08);
  border: 1px solid rgba(41, 121, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.info-alert i {
  color: var(--accent-blue);
  font-size: 14px;
  margin-top: 2px;
}

.info-alert p {
  font-size: 11px;
  color: var(--text-muted);
}

.info-alert strong {
  color: var(--text-main);
}

.bookmarklet-wrapper {
  text-align: center;
}

.bookmarklet-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(26, 27, 38, 0.9) 0%, rgba(40, 42, 58, 0.9) 100%);
  border: 1px dashed var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: grab;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.05);
}

.bookmarklet-btn:hover {
  background: var(--primary-gradient);
  color: #fff;
  border-style: solid;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.25);
  transform: scale(1.02);
}

/* Accordion settings panels */
.accordion-item {
  border-top: 1px solid var(--border-color);
  margin-top: 12px;
  padding-top: 12px;
}

.accordion-header {
  background: none;
  color: var(--text-main);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 0;
}

.accordion-header .icon-arrow {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.accordion-header.active .icon-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding-top: 12px;
}

.accordion-body.active {
  display: block;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  width: 14px;
  height: 14px;
}

.checkbox-group label {
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
}

/* Switch styling for header */
.section-header-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header-switch .section-title {
  margin-bottom: 0;
}

.switch-wrapper {
  position: relative;
}

.toggle-switch {
  display: block;
  width: 44px;
  height: 22px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.toggle-switch::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background-color: var(--text-muted);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all 0.2s ease;
}

input[type="checkbox"]#loan-use {
  display: none;
}

input[type="checkbox"]#loan-use:checked + .toggle-switch {
  background: var(--primary-gradient);
}

input[type="checkbox"]#loan-use:checked + .toggle-switch::after {
  left: 24px;
  background-color: #fff;
}

/* Range Sliders */
.slider-wrapper {
  margin-top: 6px;
  display: flex;
  align-items: center;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type="range"]:focus {
  outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  border: none;
}

input[type="range"]::-webkit-slider-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -6px;
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Status message */
.status-message {
  font-size: 11px;
  margin-top: 6px;
}

.status-message.success {
  color: var(--accent-green);
}

.status-message.error {
  color: #ff5252;
}

.status-message.loading {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main-content {
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  max-height: 100vh;
}

@media (max-width: 768px) {
  .main-content {
    padding: 20px;
  }
}

/* Top Actions Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .top-bar .action-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.property-banner h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.property-banner p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

/* Key Metrics Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.metric-value .m-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.metric-trend {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 500;
}

/* Glow effects for cards */
.card-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.15;
  top: -50px;
  right: -50px;
  pointer-events: none;
}

.neon-purple .card-glow { background-color: var(--accent-purple); }
.neon-blue .card-glow { background-color: var(--accent-blue); }
.neon-cyan .card-glow { background-color: var(--accent-cyan); }

.neon-purple { border-top: 3px solid var(--accent-purple); }
.neon-blue { border-top: 3px solid var(--accent-blue); }
.neon-cyan { border-top: 3px solid var(--accent-cyan); }

/* Charts container card */
.chart-card {
  display: flex;
  flex-direction: column;
  height: 320px;
}

.chart-container {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-main);
}

/* ==========================================================================
   Details Table Styles
   ========================================================================== */
.table-scroll-wrapper {
  overflow-x: auto;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.cost-table th,
.cost-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.cost-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
}

.cost-table .text-right {
  text-align: right;
}

.cost-table tr.group-header td {
  background-color: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  color: var(--accent-cyan);
  font-size: 12px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.15);
  padding: 14px 16px;
}

.item-name {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tax-badge {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
  background-color: rgba(255, 82, 82, 0.15);
  color: #ff5252;
}

.tax-badge.non-tax {
  background-color: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
}

.item-cost {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.item-formula {
  color: var(--text-muted);
  font-size: 12px;
}

.override-input {
  width: 100px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  text-align: right;
  margin-left: auto;
  display: block;
}

.table-footnote {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 11px;
}

/* ==========================================================================
   Property Comparison list
   ========================================================================== */
.comparison-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comparison-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.compare-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all 0.2s ease;
}

.compare-card:hover {
  border-color: rgba(0, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.04);
}

.compare-card-title {
  font-size: 13px;
  font-weight: 600;
  padding-right: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-remove-compare {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  transition: color 0.2s ease;
}

.btn-remove-compare:hover {
  color: #ff5252;
}

.compare-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.compare-row .lbl {
  color: var(--text-muted);
}

.compare-row .val {
  font-weight: 600;
  color: var(--text-main);
}

.compare-total-row {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

.compare-total-row .val {
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-size: 14px;
}

.empty-message {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  padding: 20px 0;
}

.btn-success {
  background: var(--accent-green) !important;
  color: var(--text-dark) !important;
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.3) !important;
}

/* ==========================================================================
   Print Only Elements Layout
   ========================================================================== */
.print-only {
  display: none;
}

@media print {
  body {
    background-color: #fff;
    color: #000;
    font-size: 12pt;
    line-height: 1.4;
  }

  .print-hidden {
    display: none !important;
  }

  .print-only {
    display: block;
  }

  .app-container {
    display: block;
    min-height: auto;
  }

  /* Sheet margins */
  @page {
    margin: 1.5cm;
    size: A4 portrait;
  }

  .print-layout {
    font-family: var(--font-body);
  }

  .print-header {
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  .print-header h1 {
    font-size: 20pt;
    font-weight: 700;
  }

  .print-date {
    font-size: 10pt;
    color: #666;
  }

  .print-property-summary {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
  }

  .print-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
  }

  .print-summary-row:last-child {
    margin-bottom: 0;
  }

  .print-summary-cell {
    font-size: 10pt;
  }

  .print-key-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
  }

  .print-metric-box {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
  }

  .print-metric-box.highlight {
    background-color: #f0f4ff;
    border-color: #2979ff;
  }

  .print-metric-box .lbl {
    font-size: 9pt;
    color: #555;
    font-weight: 600;
    margin-bottom: 4px;
  }

  .print-metric-box .val {
    font-size: 16pt;
    font-weight: 700;
    color: #000;
  }

  /* Table styling for print */
  .cost-table {
    font-size: 9.5pt;
    border-collapse: collapse;
    width: 100%;
  }

  .cost-table th, 
  .cost-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
  }

  .cost-table th {
    background-color: #f1f2f6;
    color: #000;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
  }

  .cost-table tr.group-header td {
    background-color: #f8f9fa;
    color: #000;
    font-weight: 700;
    border-bottom: 2px solid #ddd;
    padding: 8px 10px;
  }

  .tax-badge {
    border: 1px solid #ff5252;
    background: none;
    color: #ff5252;
    padding: 0px 2px;
  }

  .tax-badge.non-tax {
    border: 1px solid #00c853;
    background: none;
    color: #00c853;
    padding: 0px 2px;
  }
}

/* Password Lock Screen Overlay */
#lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0b0c10;
  background-image: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.15) 0%, rgba(11, 12, 16, 0.98) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lock-card {
  background: rgba(26, 27, 38, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(138, 43, 226, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: lockCardShow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lockCardShow {
  from {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.lock-icon {
  background: var(--primary-gradient);
  color: #fff;
  font-size: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.lock-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.lock-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.lock-form {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.lock-form input[type="password"] {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 10px 16px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.lock-form input[type="password"]:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.unlock-error-msg {
  color: #ff5252;
  font-size: 12px;
  font-weight: 500;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Recommendation list in sidebar */
.recommendation-list-container {
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
}

.recommend-item {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.recommend-item:hover {
  border-color: rgba(0, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.04);
}

.recommend-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recommend-item-name {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-item-link {
  color: var(--accent-cyan);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-item-link:hover {
  text-decoration: underline;
}

.btn-remove-recommend {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 11px;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-recommend:hover {
  color: #ff5252;
}

#btn-sync-db:hover {
  color: var(--accent-cyan) !important;
  border-color: rgba(0, 255, 255, 0.3) !important;
  background-color: rgba(0, 255, 255, 0.05) !important;
}
