/* ==========================================================================
   FINNONE DASHBOARD & AUTH STYLES
   ========================================================================== */

/* FinnOne Header */
.finnone-header {
  background: linear-gradient(180deg, #5785b3 0%, #46729e 100%);
  color: #ffffff;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
}

.finnone-user-badge {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.finnone-logo {
  font-size: 2.8rem;
  font-style: italic;
  font-weight: 700;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  letter-spacing: -1px;
}

.finnone-logo .logo-o {
  display: inline-block;
  color: #e50000;
  width: 24px;
  height: 38px;
  border: 4.5px solid #e50000;
  border-radius: 50%;
  margin: 0 2px;
  transform: translateY(2px);
}

.finnone-branch-badge {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* FinnOne Navigation Menu */
.finnone-nav-bar {
  background: #ffffff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  border-bottom: 1px solid #dcdcdc;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.finnone-nav-item {
  display: inline-flex;
  align-items: center;
  background: #4a5359;
  color: #ffffff;
  text-decoration: none;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.5px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease;
  user-select: none;
}

.finnone-nav-item:hover {
  background: #394046;
}

/* Rounded tabs like the screenshot */
.finnone-nav-item.tab-home {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  padding-left: 24px;
  padding-right: 22px;
}

.finnone-nav-item.tab-logout {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
  padding-left: 22px;
  padding-right: 26px;
  margin-left: 1px;
}

.finnone-plus-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #73ba27;
  color: #ffffff;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  margin-left: 8px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Dropdown Menu for Nav items with (+) */
.finnone-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.finnone-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid #d0d7de;
  border-radius: 6px;
  z-index: 1000;
  margin-top: 2px;
  overflow: hidden;
}

/* Dropdown opens on click via JS */

.finnone-dropdown-content a {
  color: #24292f;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.finnone-dropdown-content a:hover {
  background-color: #f3f6f9;
  color: #0969da;
}

/* FinnOne Main Canvas */
.finnone-main-canvas {
  min-height: calc(100vh - 165px);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 24px;
}

.finnone-welcome-container {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: center;
}

.finnone-quick-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.finnone-card {
  background: #fdfdfd;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.finnone-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #46729e;
}

.finnone-card-title {
  font-size: 0.85rem;
  color: #586069;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

.finnone-card-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #24292f;
}

/* FinnOne Footer */
.finnone-footer {
  text-align: center;
  font-size: 0.88rem;
  color: #333333;
  padding: 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.finnone-footer .designer-brand {
  color: #e65100;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ========================================================
   MOOKKANNOOR AZCHA CHANTHA — GLOBAL DASHBOARD & NAV STYLES
   ======================================================== */

.mac-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ----- HEADER ----- */
.mac-header {
  background: linear-gradient(135deg, #15803d 0%, #166534 60%, #14532d 100%);
  color: #fff;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(21, 128, 61, 0.4);
}

.mac-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.mac-brand-icon {
  font-size: 2.4rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.mac-brand-title {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1;
  font-style: italic;
}

.mac-brand-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ----- NAVIGATION (CENTERED PILLS) ----- */
.mac-nav {
  background: #1a3d2b;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-bottom: 2px solid #15803d;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.mac-nav-item {
  display: inline-flex;
  align-items: center;
  background: #2d553e;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.5px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease;
  user-select: none;
}

.mac-nav-item:hover {
  background: #1e3f2c;
}

.mac-nav-item.active {
  background: #15803d;
}

.mac-nav-item.tab-home {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  padding-left: 22px;
  padding-right: 20px;
}

.mac-nav-item.tab-logout {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  padding-left: 20px;
  padding-right: 22px;
  background: #852222;
}

.mac-nav-item.tab-logout:hover {
  background: #b91c1c;
}

.mac-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #ffffff;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  margin-left: 8px;
  line-height: 1;
}

/* Dropdown */
.mac-dropdown {
  position: relative;
  display: inline-block;
}

.mac-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid #d1fae5;
  border-top: 3px solid #16a34a;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  z-index: 1000;
  overflow: hidden;
}

/* mac dropdown opens on click via JS */

.mac-dropdown-menu a {
  display: block;
  padding: 11px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a3d2b;
  text-decoration: none;
  border-bottom: 1px solid #f0fdf4;
  transition: background 0.15s, padding 0.15s;
}

.mac-dropdown-menu a:hover {
  background: #f0fdf4;
  color: #15803d;
  padding-left: 24px;
}

/* ----- MAIN CANVAS ----- */
.mac-main {
  flex: 1;
  min-height: calc(100vh - 160px);
  background: #ffffff;
}

/* ----- FOOTER ----- */
.mac-footer {
  background: #ffffff;
  color: #55695d;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  border-top: 1px solid #e5e7eb;
}

.mac-footer-brand {
  color: #e65100;
  font-weight: 700;
}

/* ========================================================
   FINNONE-STYLE MULTI-LEVEL FLYOUT DROPDOWN SYSTEM
   ======================================================== */

.fn-nav-dropdown {
  position: relative;
  display: inline-block;
}

/* Level 1 dropdown (opens below nav button) */
.fn-flyout-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #234733;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 1100;
  margin-top: 3px;
  padding: 4px 0;
}

/* Container for each item with potential flyout */
.fn-item-wrap {
  position: relative;
}

/* Trigger item */
.fn-item-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.fn-item-trigger:hover,
.fn-item-trigger.active-item {
  background: #183824;
}

/* Green circular plus/minus badge */
.fn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  margin-left: 14px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

/* Sub-level flyout menu (opens directly to the RIGHT) */
.fn-sub-flyout {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 195px;
  background: #234733;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  z-index: 1200;
  margin-left: 3px;
  padding: 5px 0;
}

/* Links inside flyout */
.fn-sub-flyout a,
.fn-flyout-menu > a {
  display: block;
  padding: 9px 18px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s, padding-left 0.15s;
  white-space: nowrap;
}

.fn-sub-flyout a:last-child,
.fn-flyout-menu > a:last-child {
  border-bottom: none;
}

.fn-sub-flyout a:hover,
.fn-flyout-menu > a:hover {
  background: #15803d;
  color: #ffffff;
  padding-left: 24px;
}

/* =========================================================
   GLOBAL PRINT STYLES - HIDE NAVBAR, HEADER, FOOTER
   ========================================================= */
@media print {
  .mac-header,
  header,
  .mac-nav,
  nav,
  .mac-navbar,
  .mac-footer,
  footer,
  .mac-modal-overlay,
  .no-print {
    display: none !important;
  }
}

