/* ============================================
   ICCFAITH ERP - Main Stylesheet
   ============================================ */

/* --- VARIABLES --- */
:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

/* LIGHT THEME */
[data-theme="light"], .theme-light {
  --bg: #f8f9fc;
  --bg2: #ffffff;
  --bg3: #f1f3f9;
  --surface: #ffffff;
  --surface2: #f1f3f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text2: #475569;
  --text3: #94a3b8;
  --sidebar-bg: #1e1b4b;
  --sidebar-text: #c7d2fe;
  --sidebar-active: #4f46e5;
  --navbar-bg: rgba(255,255,255,0.95);
}

/* DARK THEME */
[data-theme="dark"], .theme-dark {
  --bg: #0d0f1a;
  --bg2: #151827;
  --bg3: #1e2235;
  --surface: #1e2235;
  --surface2: #252b40;
  --border: #2d3555;
  --text: #f0f4ff;
  --text2: #94a3b8;
  --text3: #4a5578;
  --sidebar-bg: #0d0f1a;
  --sidebar-text: #8892b0;
  --sidebar-active: #4f46e5;
  --navbar-bg: rgba(13,15,26,0.95);
}


/* MONDAY THEME */
[data-theme="monday"], .theme-monday {
  --primary: #0073ea;
  --primary-dark: #0060c0;
  --primary-light: #579bfc;
  --accent: #00c875;
  --success: #00c875;
  --warning: #ffcb00;
  --danger: #e2445c;
  --bg: #f6f7fb;
  --bg2: #ffffff;
  --bg3: #eceef5;
  --surface: #ffffff;
  --surface2: #f6f7fb;
  --border: #d0d4e4;
  --text: #323338;
  --text2: #676879;
  --text3: #9699a6;
  --sidebar-bg: #2b2c5e;
  --sidebar-text: #b0b0d0;
  --sidebar-active: #0073ea;
  --navbar-bg: rgba(255,255,255,0.97);
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}
/* OCEAN THEME */
[data-theme="ocean"], .theme-ocean {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #22d3ee;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #f0f9ff;
  --bg2: #ffffff;
  --bg3: #e0f2fe;
  --surface: #ffffff;
  --surface2: #f0f9ff;
  --border: #bae6fd;
  --text: #0c4a6e;
  --text2: #0369a1;
  --text3: #7dd3fc;
  --sidebar-bg: #0c4a6e;
  --sidebar-text: #bae6fd;
  --sidebar-active: #0891b2;
  --navbar-bg: rgba(255,255,255,0.97);
}
/* EMERALD THEME */
[data-theme="emerald"], .theme-emerald {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #34d399;
  --accent: #10b981;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #f0fdf4;
  --bg2: #ffffff;
  --bg3: #dcfce7;
  --surface: #ffffff;
  --surface2: #f0fdf4;
  --border: #bbf7d0;
  --text: #14532d;
  --text2: #166534;
  --text3: #86efac;
  --sidebar-bg: #14532d;
  --sidebar-text: #bbf7d0;
  --sidebar-active: #059669;
  --navbar-bg: rgba(255,255,255,0.97);
}
/* MIDNIGHT THEME */
[data-theme="midnight"], .theme-midnight {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --accent: #f43f5e;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #020617;
  --bg2: #0f172a;
  --bg3: #1e293b;
  --surface: #0f172a;
  --surface2: #1e293b;
  --border: #1e293b;
  --text: #f8fafc;
  --text2: #94a3b8;
  --text3: #475569;
  --sidebar-bg: #020617;
  --sidebar-text: #94a3b8;
  --sidebar-active: #6366f1;
  --navbar-bg: rgba(2,6,23,0.97);
}
/* ROSE THEME */
[data-theme="rose"], .theme-rose {
  --primary: #e11d48;
  --primary-dark: #be123c;
  --primary-light: #fb7185;
  --accent: #f43f5e;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #fff1f2;
  --bg2: #ffffff;
  --bg3: #ffe4e6;
  --surface: #ffffff;
  --surface2: #fff1f2;
  --border: #fecdd3;
  --text: #881337;
  --text2: #9f1239;
  --text3: #fda4af;
  --sidebar-bg: #881337;
  --sidebar-text: #fecdd3;
  --sidebar-active: #e11d48;
  --navbar-bg: rgba(255,255,255,0.97);
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}
html { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- TYPOGRAPHY --- */
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

/* --- CONTAINER --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- BUTTONS --- */
.btn-primary {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(79,70,229,0.35); }

.btn-outline {
  border: 2px solid var(--border);
  color: var(--text);
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-success { background: var(--success); color: #fff; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-success:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-danger  { background: var(--danger);  color: #fff; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-danger:hover  { opacity: 0.88; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }

/* --- FORM ELEMENTS --- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--text2); }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); }
.form-control::placeholder { color: var(--text3); }
select.form-control { cursor: pointer; }

/* --- CARDS --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-title { font-size: 1rem; font-weight: 700; }

/* --- STAT CARDS --- */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; align-items: center; gap: 18px;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon.indigo  { background: rgba(79,70,229,0.12); color: var(--primary); }
.stat-icon.green   { background: rgba(16,185,129,0.12); color: var(--success); }
.stat-icon.red     { background: rgba(239,68,68,0.12);  color: var(--danger); }
.stat-icon.cyan    { background: rgba(6,182,212,0.12);  color: var(--accent); }
.stat-icon.amber   { background: rgba(245,158,11,0.12); color: var(--warning); }
.stat-value { font-size: 1.7rem; font-weight: 800; font-family: var(--font-display); line-height: 1; }
.stat-label { font-size: 0.83rem; color: var(--text2); margin-top: 4px; }

/* --- NAVBAR PUBLIC --- */
.navbar-public {
  position: sticky; top: 0; z-index: 100;
  background: #32124f;
  backdrop-filter: blur(12px);
  border-bottom: none;
  padding: 14px 0;
}
.navbar-public a { color: #fff !important; }
.navbar-public .brand-name { color: #fff !important; }
.navbar-public .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 38px; height: 38px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--text2); font-weight: 500; font-size: 0.92rem; padding: 6px 12px; border-radius: var(--radius-sm); transition: var(--transition); }
.nav-links a:hover { color: var(--primary); background: rgba(79,70,229,0.07); }
.nav-controls { display: flex; align-items: center; gap: 8px; }

/* --- CONTROL BUTTONS --- */
.ctrl-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  background: var(--surface2);
  border: 1px solid var(--border);
}
.ctrl-btn:hover { color: var(--primary); border-color: var(--primary); }
.text-danger { color: var(--danger) !important; }

/* --- LANG SWITCHER --- */
.lang-switcher { position: relative; }
.lang-drop {
  display: none;
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 130px; z-index: 200;
  overflow: hidden;
}
.lang-drop-up { top: auto; bottom: calc(100% + 6px); }
.lang-switcher:hover .lang-drop { display: block; }
.lang-drop a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 0.88rem; font-weight: 500; transition: var(--transition); }
.lang-drop a:hover { background: var(--bg3); color: var(--primary); }

/* --- MOBILE MENU --- */
.mobile-menu-btn { display: none; padding: 8px; color: var(--text); font-size: 1.1rem; }
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 65px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; padding: 16px; gap: 4px; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-controls .lang-switcher, .nav-controls .ctrl-btn:not(.mobile-menu-btn) { display: none; }
  .mobile-menu-btn { display: flex; }
  .navbar-public .container { position: relative; }
}

/* --- HERO SECTION --- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,70,229,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,70,229,0.1);
  border: 1px solid rgba(79,70,229,0.25);
  color: var(--primary-light);
  padding: 6px 16px; border-radius: 100px;
  font-size: 0.83rem; font-weight: 600;
  margin-bottom: 28px;
}
.hero h1 { margin-bottom: 8px; }
.hero h1 span { color: var(--primary); }
.hero-subtitle { font-size: clamp(1.5rem, 3vw, 2.4rem); font-family: var(--font-display); color: var(--primary-light); font-weight: 700; margin-bottom: 20px; }
.hero p { font-size: 1.1rem; color: var(--text2); max-width: 600px; margin: 0 auto 36px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn-primary { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }
.hero-btns .btn-outline { padding: 13px 30px; font-size: 1rem; border-radius: var(--radius); }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 60px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 2rem; font-family: var(--font-display); font-weight: 800; color: var(--primary); }
.hero-stat span { font-size: 0.85rem; color: var(--text2); }

/* --- FEATURES SECTION --- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; background: rgba(79,70,229,0.1); color: var(--primary); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 4px 14px; border-radius: 100px; margin-bottom: 14px; }
.section-header p { color: var(--text2); font-size: 1.05rem; max-width: 520px; margin: 10px auto 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--primary); transform: scaleX(0); transition: var(--transition); transform-origin: left; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(79,70,229,0.3); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: rgba(79,70,229,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--primary); margin-bottom: 18px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text2); font-size: 0.92rem; line-height: 1.65; }

/* --- PLANS SECTION --- */
.plans-section { padding: 80px 0; background: var(--bg3); }
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 48px; }
.billing-toggle span { font-weight: 600; color: var(--text2); }
.billing-toggle span.active { color: var(--primary); }
.toggle-switch { width: 52px; height: 28px; background: var(--primary); border-radius: 100px; position: relative; cursor: pointer; transition: var(--transition); }
.toggle-switch::after { content:''; position:absolute; top:3px; left:3px; width:22px; height:22px; background:#fff; border-radius:50%; transition: var(--transition); }
.toggle-switch.annual::after { left:27px; }
.badge-save { background: var(--success); color:#fff; font-size:0.72rem; font-weight:700; padding:3px 8px; border-radius:100px; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.plan-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.plan-card.popular { border-color: var(--primary); }
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.popular-badge { position:absolute; top:-14px; left:50%; transform:translateX(-50%); background:var(--primary); color:#fff; font-size:0.75rem; font-weight:700; padding:5px 16px; border-radius:100px; white-space:nowrap; }
.plan-name { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text2); margin-bottom: 12px; }
.plan-price { font-size: 2.8rem; font-family: var(--font-display); font-weight: 800; color: var(--text); line-height: 1; }
.plan-price sup { font-size: 1.2rem; vertical-align: super; }
.plan-price sub { font-size: 0.9rem; color: var(--text2); font-weight: 400; }
.plan-features { list-style: none; margin: 24px 0; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.plan-features li i { color: var(--success); font-size: 0.85rem; flex-shrink: 0; }
.plan-card .btn-primary, .plan-card .btn-outline { width: 100%; justify-content: center; margin-top: 8px; }

/* --- APP LAYOUT (DASHBOARD) --- */
.app-layout { display: flex; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 50;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.sidebar-header { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.sidebar-header .brand-name { color: #fff; font-size: 1.05rem; flex: 1; }
.sidebar-close { display: none; color: rgba(255,255,255,0.5); font-size: 1.1rem; padding: 4px; }
.sidebar-user { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; gap: 12px; }
.user-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 0.9rem; overflow: hidden; flex-shrink: 0; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-info strong { display: block; color: #fff; font-size: 0.9rem; }
.user-info small { color: var(--sidebar-text); font-size: 0.78rem; }
.sidebar-nav { padding: 12px 12px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--sidebar-text); font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: #fff; }
.nav-item i { width: 18px; text-align: center; font-size: 0.95rem; }
.sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,0.07); display: flex; flex-direction: column; gap: 4px; }
.sidebar-footer .ctrl-btn { background: transparent; border-color: rgba(255,255,255,0.1); color: var(--sidebar-text); }
.sidebar-footer .ctrl-btn:hover { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.2); }

/* MAIN WRAPPER */
.main-wrapper { flex: 1; margin-left: 260px; display: flex; flex-direction: column; min-height: 100vh; }

/* TOPBAR */
.topbar { height: 64px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 40; }
.sidebar-toggle { display: none; color: var(--text); font-size: 1.1rem; padding: 8px; border-radius: var(--radius-sm); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.user-avatar-sm { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 0.78rem; overflow: hidden; cursor: pointer; }
.user-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.notif-btn { position: relative; padding: 8px; color: var(--text2); cursor: pointer; font-size: 1rem; border-radius: var(--radius-sm); transition: var(--transition); }
.notif-btn:hover { color: var(--primary); background: var(--bg3); }
.notif-badge { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; display: none; }
.notif-badge.show { display: block; }
.user-menu { position: relative; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.user-menu i { font-size: 0.7rem; color: var(--text3); }
.user-drop { display: none; position: absolute; right: 0; top: calc(100% + 10px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 180px; z-index: 200; overflow: hidden; }
.user-menu:hover .user-drop { display: block; }
.user-drop a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 0.88rem; transition: var(--transition); }
.user-drop a:hover { background: var(--bg3); color: var(--primary); }
.user-drop hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* MAIN CONTENT */
.main-content { padding: 32px; flex: 1; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 1.6rem; margin-bottom: 4px; }
.page-header p { color: var(--text2); font-size: 0.92rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* TABLES */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: var(--bg3); color: var(--text2); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--border); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
tr:hover td { background: var(--bg3); }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: rgba(16,185,129,0.12); color: var(--success); }
.badge-danger  { background: rgba(239,68,68,0.12);  color: var(--danger); }
.badge-warning { background: rgba(245,158,11,0.12); color: var(--warning); }
.badge-info    { background: rgba(6,182,212,0.12);  color: var(--accent); }
.badge-purple  { background: rgba(139,92,246,0.12); color: #8b5cf6; }

/* ALERTS */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.25); }
.alert-danger  { background: rgba(239,68,68,0.1);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.25); }
.alert-info    { background: rgba(79,70,229,0.1);  color: var(--primary); border: 1px solid rgba(79,70,229,0.25); }

/* FOOTER PUBLIC */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 40px 0 24px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 16px; }
.footer p { color: var(--text2); font-size: 0.85rem; }

/* RESPONSIVE DASHBOARD */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .sidebar-toggle { display: flex; }
  .main-wrapper { margin-left: 0; }
  .main-content { padding: 20px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 0 16px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
}

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.fade-in    { animation: fadeIn   0.4s ease forwards; }

/* LOGIN / REGISTER */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg); }
.auth-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); animation: fadeInUp 0.5s ease; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .brand-icon { width: 56px; height: 56px; font-size: 1.4rem; margin: 0 auto 12px; }
.auth-logo h1 { font-size: 1.5rem; }
.auth-logo p { color: var(--text2); font-size: 0.88rem; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--text2); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 0.9rem; }
.input-icon .form-control { padding-left: 40px; }




/* ============================================
   LANDING MOBILE RESPONSIVE - DEFINITIVO
   ============================================ */

/* DESKTOP BASE */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.org-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.org-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mobile-profile-card { display: none; }

@media (max-width: 768px) {

  /* CONTAINER */
  .container { padding: 0 16px; }

  /* HERO */
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .hero p { font-size: 0.93rem; }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0 8px;
  }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
  }
  .hero-stats { gap: 14px; margin-top: 32px; }
  .hero-stat strong { font-size: 1.3rem; }

  /* FEATURES */
  .section { padding: 44px 0; }
  .section-header { margin-bottom: 24px; }
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 18px; }

  /* PLANES SAAS */
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .plan-card { padding: 22px 16px; }

  /* QUIENES SOMOS - ocultar foto grande, mostrar card compacta */
  #quienes-somos { padding: 44px 0; }
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .founder-grid > div:first-child { display: none; }

  .founder-facts {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
  }
  .founder-cta {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  .founder-cta a {
    width: 100%;
    justify-content: center;
  }
  #quienes-somos h2 { font-size: 1.5rem; }

  /* CARD PERFIL MOVIL */
  .mobile-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
  }
  .mobile-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: url(/img/israel.jpg) center top / cover;
    border: 3px solid var(--primary);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(79,70,229,0.3);
  }
  .mobile-profile-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
  }
  .mobile-profile-role {
    font-size: 0.78rem;
    color: var(--text2);
    margin-top: 2px;
  }
  .mobile-profile-badges {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .mobile-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(79,70,229,0.1);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
  }

  /* ORGANIZACIONES */
  #organizaciones { padding: 60px 0; }
  #organizaciones h2 { font-size: 1.7rem; }
  .org-grid { grid-template-columns: 1fr; gap: 16px; }
  .org-bottom { grid-template-columns: 1fr 1fr; gap: 10px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.55rem; }
  .founder-facts { grid-template-columns: 1fr; }
}

/* OCULTAR QUIENES SOMOS EN MOVIL */
@media (max-width: 768px) {
  #quienes-somos { display: none !important; }
}

/* ELIMINAR SCROLL HORIZONTAL EN MOVIL */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Restaurar elementos que necesitan ser mas anchos */
  .lang-drop, .user-drop { max-width: 200px !important; }
}

/* FIX SCROLL HORIZONTAL */
@media (max-width: 768px) {
  #organizaciones { overflow: hidden !important; }
  .hero { overflow: hidden !important; }
  section { overflow-x: hidden !important; }
}

/* PLANES - CARRUSEL EN MOVIL */
@media (max-width: 768px) {
  .plans-section .container { padding: 0; }
  .plans-grid {
    grid-template-columns: unset !important;
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 0 !important;
    padding: 16px 24px 24px !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .plans-grid::-webkit-scrollbar { display: none; }
  .plan-card {
    min-width: 85vw !important;
    max-width: 85vw !important;
    scroll-snap-align: center !important;
    margin-right: 16px !important;
    flex-shrink: 0 !important;
  }
  .plan-card:last-child { margin-right: 24px !important; }

  /* Indicador de scroll */
  .plans-section .section-header::after {
    content: '← desliza para ver más →';
    display: block;
    font-size: 0.75rem;
    color: var(--text3);
    margin-top: 8px;
    letter-spacing: 0.5px;
  }
}

/* ORGANIZACIONES - CARRUSEL EN MOVIL */
@media (max-width: 768px) {
  .org-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 0 !important;
    padding: 16px 24px 24px !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .org-grid::-webkit-scrollbar { display: none; }
  .org-grid > div {
    min-width: 85vw !important;
    max-width: 85vw !important;
    scroll-snap-align: center !important;
    margin-right: 16px !important;
    flex-shrink: 0 !important;
  }
  .org-grid > div:last-child { margin-right: 24px !important; }
}

/* CARACTERISTICAS - CARRUSEL EN MOVIL */
@media (max-width: 768px) {
  .features-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 0 !important;
    padding: 8px 24px 24px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .features-grid::-webkit-scrollbar { display: none; }
  .feature-card {
    min-width: 78vw !important;
    max-width: 78vw !important;
    scroll-snap-align: center !important;
    margin-right: 14px !important;
    flex-shrink: 0 !important;
  }
  .feature-card:last-child { margin-right: 24px !important; }

  /* Indicador deslizar */
  .section-header p::after {
    content: ' · desliza >';
    color: var(--primary);
    font-weight: 600;
  }
}

/* FLECHAS CARRUSEL - SOLO MOVIL */
@media (max-width: 768px) {
  .carousel-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 0 24px 8px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
  }
  .carousel-hint i {
    font-size: 1rem;
    animation: hintArrow 1.2s ease-in-out infinite;
  }
  @keyframes hintArrow {
    0%   { transform: translateX(0); opacity: 1; }
    50%  { transform: translateX(7px); opacity: 0.4; }
    100% { transform: translateX(0); opacity: 1; }
  }
}
/* OCULTAR FLECHAS EN DESKTOP */
@media (min-width: 769px) {
  .carousel-hint { display: none; }
}

/* TESTIMONIALES - CARRUSEL MOVIL */
@media (max-width: 768px) {
  .testimonials-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 0 !important;
    padding: 8px 24px 24px !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonials-grid > div {
    min-width: 85vw !important;
    max-width: 85vw !important;
    scroll-snap-align: center !important;
    margin-right: 16px !important;
    flex-shrink: 0 !important;
  }
  .testimonials-grid > div:last-child { margin-right: 24px !important; }
}

/* ── HERO MOBILE APP ── */
@media (max-width: 768px) {
  section[style*="background:linear-gradient(180deg,#32124f"] {
    min-height:100svh !important;
    padding:0 !important;
  }
  section[style*="background:linear-gradient(180deg,#32124f"] .container,
  section[style*="background:linear-gradient(180deg,#32124f"] > div {
    padding:0 20px 40px !important;
  }
  section[style*="background:linear-gradient(180deg,#32124f"] h1 {
    font-size:2rem !important;
    line-height:1.2 !important;
    margin-bottom:16px !important;
  }
  section[style*="background:linear-gradient(180deg,#32124f"] p {
    font-size:0.95rem !important;
    margin-bottom:24px !important;
  }
  section[style*="background:linear-gradient(180deg,#32124f"] .hero-btns,
  section[style*="background:linear-gradient(180deg,#32124f"] div[style*="display:flex;gap:14px"] {
    flex-direction:column !important;
    gap:10px !important;
    width:100% !important;
  }
  section[style*="background:linear-gradient(180deg,#32124f"] a[href="/register.php"],
  section[style*="background:linear-gradient(180deg,#32124f"] a[href="#features"] {
    width:100% !important;
    justify-content:center !important;
    padding:16px !important;
    font-size:1rem !important;
    border-radius:14px !important;
  }
  section[style*="background:linear-gradient(180deg,#32124f"] div[style*="500+"] strong,
  section[style*="background:linear-gradient(180deg,#32124f"] div[style*="font-size:1.8rem"] {
    font-size:1.4rem !important;
  }
  section[style*="background:linear-gradient(180deg,#32124f"] div[style*="display:flex;gap:40px"] {
    gap:20px !important;
    justify-content:space-around !important;
  }
}
@media (max-width: 768px) {
  .navbar-public { padding:10px 0 !important; }
  .navbar-public img[alt="ICCFaith ERP"] { height:28px !important; }
}

/* ============================================
   MONDAY THEME - OVERRIDES COMPLETOS
   ============================================ */
[data-theme="monday"] .sidebar {
  background: #2b2c5e;
  border-right: 1px solid rgba(255,255,255,0.08);
}
[data-theme="monday"] .sidebar-header {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 18px 16px;
}
[data-theme="monday"] .nav-item {
  border-radius: 6px;
  font-size: 0.88rem;
  padding: 9px 12px;
  color: #b0b0d0;
}
[data-theme="monday"] .nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
[data-theme="monday"] .nav-item.active {
  background: #0073ea;
  color: #fff;
  font-weight: 700;
}
[data-theme="monday"] .sidebar-footer .ctrl-btn {
  color: #b0b0d0;
}
[data-theme="monday"] .topbar {
  background: #ffffff;
  border-bottom: 1px solid #d0d4e4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  height: 56px;
}
[data-theme="monday"] .main-content {
  background: #f6f7fb;
  padding: 24px 28px;
}
[data-theme="monday"] .card {
  background: #ffffff;
  border: 1px solid #e0e3ef;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
[data-theme="monday"] .card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
[data-theme="monday"] .stat-card {
  background: #ffffff;
  border: 1px solid #e0e3ef;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
[data-theme="monday"] .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,115,234,0.12);
}
[data-theme="monday"] .stat-value {
  color: #323338;
  font-size: 1.6rem;
}
[data-theme="monday"] .stat-icon.indigo {
  background: rgba(0,115,234,0.1);
  color: #0073ea;
}
[data-theme="monday"] .stat-icon.green {
  background: rgba(0,200,117,0.1);
  color: #00c875;
}
[data-theme="monday"] .stat-icon.red {
  background: rgba(226,68,92,0.1);
  color: #e2445c;
}
[data-theme="monday"] .stat-icon.amber {
  background: rgba(255,203,0,0.12);
  color: #ffcb00;
}
[data-theme="monday"] .btn-primary {
  background: #0073ea;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: none;
  letter-spacing: 0.2px;
}
[data-theme="monday"] .btn-primary:hover {
  background: #0060c0;
  box-shadow: 0 4px 12px rgba(0,115,234,0.3);
  transform: translateY(-1px);
}
[data-theme="monday"] .btn-outline {
  border: 1px solid #d0d4e4;
  border-radius: 6px;
  color: #323338;
  background: #fff;
}
[data-theme="monday"] .btn-outline:hover {
  border-color: #0073ea;
  color: #0073ea;
  background: rgba(0,115,234,0.04);
}
[data-theme="monday"] .btn-success {
  background: #00c875;
  border-radius: 6px;
}
[data-theme="monday"] .btn-danger {
  background: #e2445c;
  border-radius: 6px;
}
[data-theme="monday"] .form-control {
  border: 1px solid #d0d4e4;
  border-radius: 6px;
  background: #ffffff;
  color: #323338;
  font-size: 0.92rem;
}
[data-theme="monday"] .form-control:focus {
  border-color: #0073ea;
  box-shadow: 0 0 0 3px rgba(0,115,234,0.12);
}
[data-theme="monday"] th {
  background: #f6f7fb;
  color: #676879;
  border-bottom: 2px solid #d0d4e4;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
[data-theme="monday"] td {
  border-bottom: 1px solid #eceef5;
  color: #323338;
}
[data-theme="monday"] tr:hover td {
  background: #f6f7fb;
}
[data-theme="monday"] .page-header h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #323338;
}
[data-theme="monday"] .page-header p {
  color: #676879;
}
[data-theme="monday"] .alert-success {
  background: rgba(0,200,117,0.08);
  color: #00854d;
  border-color: rgba(0,200,117,0.25);
}
[data-theme="monday"] .alert-danger {
  background: rgba(226,68,92,0.08);
  color: #c0002a;
  border-color: rgba(226,68,92,0.25);
}
[data-theme="monday"] .badge-success {
  background: rgba(0,200,117,0.12);
  color: #00854d;
}
[data-theme="monday"] .badge-danger {
  background: rgba(226,68,92,0.12);
  color: #c0002a;
}
[data-theme="monday"] .badge-warning {
  background: rgba(255,203,0,0.15);
  color: #9a7500;
}
[data-theme="monday"] .user-drop {
  border-radius: 8px;
  border: 1px solid #d0d4e4;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
[data-theme="monday"] .user-drop a:hover {
  background: #f6f7fb;
  color: #0073ea;
}
[data-theme="monday"] .stats-grid {
  gap: 16px;
}
[data-theme="monday"] .sidebar-nav {
  padding: 8px;
}
[data-theme="monday"] .nav-item i {
  color: inherit;
}
