/* TackHost Custom Theme for FOSSBilling */
:root {
  --th-primary: #3b7ddd;
  --th-primary-dark: #2c5faa;
  --th-accent: #e67e22;
  --th-success: #28a745;
  --th-danger: #dc3545;
  --th-dark: #1a1d23;
  --th-dark2: #252830;
  --th-light: #f8f9fa;
  --th-border: #e9ecef;
  --th-text: #333;
  --th-muted: #6c757d;
  --th-radius: 8px;
  --th-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Typography */
body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--th-text); background: var(--th-light); }
h1,h2,h3,h4,h5 { font-weight: 600; }

/* Navbar */
.navbar { background: var(--th-dark) !important; padding: 0.6rem 1rem !important; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.navbar-brand img { height: 32px !important; }
.navbar-brand span { color: #fff !important; font-weight: 700; font-size: 1.2rem; }
.nav-link { color: rgba(255,255,255,0.8) !important; font-size: 0.88rem; font-weight: 500; padding: 0.5rem 1rem !important; transition: color 0.15s; }
.nav-link:hover, .nav-link.active { color: #fff !important; }
.navbar-toggler { border-color: rgba(255,255,255,0.3); }

/* Cards */
.card { border: none; border-radius: var(--th-radius); box-shadow: var(--th-shadow); transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.card-header { background: #fff; border-bottom: 1px solid var(--th-border); font-weight: 600; }

/* Buttons */
.btn-primary { background: var(--th-primary); border-color: var(--th-primary); border-radius: 6px; font-weight: 600; padding: 0.5rem 1.5rem; }
.btn-primary:hover { background: var(--th-primary-dark); border-color: var(--th-primary-dark); }
.btn-success { background: var(--th-success); border-color: var(--th-success); border-radius: 6px; }
.btn-outline-primary { color: var(--th-primary); border-color: var(--th-primary); border-radius: 6px; }
.btn-outline-primary:hover { background: var(--th-primary); color: #fff; }

/* Sidebar */
.list-group-item.active { background: var(--th-primary); border-color: var(--th-primary); }
.list-group-item { border-radius: 0; border-left: 3px solid transparent; transition: all 0.15s; }
.list-group-item:hover { background: #f0f5ff; border-left-color: var(--th-primary); }
.list-group-item.active { border-left-color: var(--th-primary); }

/* Tables */
.table thead th { background: #f8f9fa; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--th-muted); border-bottom: 2px solid var(--th-border); }
.table td { vertical-align: middle; }

/* Badges */
.badge { font-weight: 600; padding: 0.35em 0.65em; border-radius: 4px; }

/* Forms */
.form-control { border-radius: 6px; border-color: #dee2e6; padding: 0.6rem 0.8rem; }
.form-control:focus { border-color: var(--th-primary); box-shadow: 0 0 0 3px rgba(59,125,221,0.15); }

/* Footer */
.th-footer { background: var(--th-dark); color: rgba(255,255,255,0.7); padding: 2rem 0; margin-top: 3rem; }
.th-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.th-footer a:hover { color: #fff; }
.th-footer h6 { color: #fff; font-weight: 600; margin-bottom: 1rem; }

/* Dashboard cards */
.th-stat-card { background: #fff; border-radius: var(--th-radius); padding: 1.25rem; box-shadow: var(--th-shadow); border-left: 4px solid var(--th-primary); }
.th-stat-card .num { font-size: 1.8rem; font-weight: 700; color: var(--th-text); }
.th-stat-card .label { font-size: 0.78rem; color: var(--th-muted); text-transform: uppercase; letter-spacing: 0.03em; }

/* Pricing cards */
.th-price-card { background: #fff; border-radius: 12px; padding: 2rem; text-align: center; box-shadow: var(--th-shadow); transition: transform 0.2s, box-shadow 0.2s; position: relative; }
.th-price-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.th-price-card.popular { border: 2px solid var(--th-primary); }
.th-price-card.popular::before { content: "Most Popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--th-primary); color: #fff; padding: 2px 16px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.th-price-card .plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.th-price-card .price { font-size: 2.2rem; font-weight: 800; color: var(--th-primary); }
.th-price-card .price small { font-size: 0.9rem; font-weight: 400; color: var(--th-muted); }
.th-price-card .features { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; }
.th-price-card .features li { padding: 0.4rem 0; font-size: 0.88rem; color: var(--th-text); border-bottom: 1px solid #f5f5f5; }
.th-price-card .features li i { color: var(--th-success); margin-right: 6px; width: 16px; }

/* Login page */
.th-login-wrap { min-height: 100vh; display: flex; }
.th-login-left { flex: 1; background: linear-gradient(135deg, var(--th-dark) 0%, var(--th-primary-dark) 100%); color: #fff; display: flex; align-items: center; justify-content: center; padding: 3rem; }
.th-login-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 3rem; background: #fff; }
.th-login-form { width: 100%; max-width: 400px; }
.th-login-features li { padding: 0.6rem 0; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.th-login-features li i { color: var(--th-accent); font-size: 1.1rem; }

/* Welcome banner */
.th-welcome { background: linear-gradient(135deg, var(--th-primary) 0%, var(--th-primary-dark) 100%); color: #fff; border-radius: var(--th-radius); padding: 1.5rem 2rem; margin-bottom: 1.5rem; }
.th-welcome h2 { font-weight: 700; margin: 0 0 0.3rem; }
.th-welcome p { margin: 0; opacity: 0.9; }

/* Responsive */
@media (max-width: 768px) {
  .th-login-wrap { flex-direction: column; }
  .th-login-left { display: none; }
  .th-price-card { margin-bottom: 1rem; }
}
