/*
Theme Name: MyFinance Theme
Theme URI: http://localhost/Expense_suite/
Author: Local
Description: Standalone frontend theme for the MyFinance personal finance dashboard and shortcode pages.
Version: 1.0.1
Text Domain: myfinance-theme
*/

:root {
  --mf-navy: #0f172a;
  --mf-blue: #1f4e5f;
  --mf-blue-dark: #102a43;
  --mf-green: #16a34a;
  --mf-teal: #0f766e;
  --mf-bg: #f3f7f4;
  --mf-card: #ffffff;
  --mf-text: #162033;
  --mf-muted: #607086;
  --mf-border: #d6e2dc;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--mf-bg);
  color: var(--mf-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
a { color: var(--mf-teal); }
img { max-width: 100%; height: auto; }

.mf-theme-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mf-theme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(16px, 3vw, 36px);
  background: linear-gradient(105deg, #0f172a 0%, #12343b 54%, #0f766e 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
}

.mf-theme-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
}

.mf-theme-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .18);
}

.mf-theme-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mf-theme-nav a {
  color: #eaf2ff;
  text-decoration: none;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 8px;
}

.mf-theme-nav a:hover {
  background: rgba(255,255,255,.14);
}

.mf-theme-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  flex: 1;
}

.mf-theme-main.full-bleed {
  width: 100%;
  padding: 0;
}

.mf-theme-content {
  background: var(--mf-card);
  border: 1px solid var(--mf-border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
  padding: clamp(18px, 3vw, 32px);
}

.mf-theme-content.full-bleed {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.mf-theme-footer {
  color: var(--mf-muted);
  text-align: center;
  padding: 18px;
  font-size: 13px;
}

body.myfinance-app-page .mf-theme-header,
body.myfinance-app-page .mf-theme-footer {
  display: none;
}

body.myfinance-app-page .mf-theme-main,
body.myfinance-app-page .mf-theme-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 720px) {
  .mf-theme-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .mf-theme-main {
    width: min(100%, calc(100% - 20px));
    padding-top: 12px;
  }
}