/* Innove Contábil — layout novo (login e moldura interna).
   Carregado depois do bootstrap e do style.1.css: as telas antigas continuam funcionando
   dentro da moldura nova até serem refeitas. */

:root {
  --ic-brand: #0fb3e8;
  --ic-brand-600: #0a95c7;
  --ic-brand-700: #0878a3;
  --ic-brand-50: #e8f8fe;
  --ic-ink: #1f2933;
  --ic-ink-2: #52606d;
  --ic-ink-3: #8a96a3;
  --ic-line: #e4e9ee;
  --ic-bg: #f5f7fa;
  --ic-card: #ffffff;
  --ic-side: #10202f;
  --ic-side-2: #182c3e;
  --ic-side-ink: #b8c4cf;
  --ic-danger-bg: #fdecec;
  --ic-danger: #a42020;
  --ic-radius: 12px;
  --ic-shadow: 0 1px 2px rgba(16, 32, 47, .05), 0 1px 3px rgba(16, 32, 47, .06);
  --ic-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
body.ic-app,
body.ic-login {
  font-family: var(--ic-font);
  color: var(--ic-ink);
  background: var(--ic-bg);
  overflow: auto;
  -webkit-font-smoothing: antialiased;
}
body.ic-app a { color: var(--ic-brand-700); }
body.ic-app a:hover { color: var(--ic-brand-600); }

/* ---------- Moldura interna ---------- */
.ic-shell { display: flex; min-height: 100vh; }

.ic-sidebar {
  width: 248px; flex-shrink: 0; background: var(--ic-side); color: var(--ic-side-ink);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 1040;
}
.ic-sidebar .ic-brand { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ic-sidebar .ic-brand img { height: 36px; background: #fff; border-radius: 8px; padding: 4px 8px; }
.ic-sidebar nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.ic-sidebar .ic-nav-title { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6f8394; padding: 12px 12px 6px; }
body.ic-app .ic-sidebar nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px;
  color: var(--ic-side-ink); font-weight: 500; margin-bottom: 2px; text-decoration: none;
}
.ic-sidebar nav a i { font-size: 16px; width: 20px; text-align: center; }
body.ic-app .ic-sidebar nav a:hover { background: var(--ic-side-2); color: #fff; }
body.ic-app .ic-sidebar nav a.active { background: rgba(15, 179, 232, .14); color: #fff; box-shadow: inset 3px 0 0 var(--ic-brand); }
.ic-sidebar .ic-side-foot { padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 12px; color: #6f8394; }

.ic-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ic-topbar {
  height: 64px; background: var(--ic-card); border-bottom: 1px solid var(--ic-line);
  display: flex; align-items: center; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 1030;
}
.ic-topbar .ic-office { font-weight: 600; color: var(--ic-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-topbar .ic-office small { display: block; font-weight: 400; color: var(--ic-ink-3); font-size: 12px; }
.ic-topbar .ic-user { margin-left: auto; position: relative; }
.ic-topbar .ic-user > button {
  display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 6px 8px; border-radius: 10px; color: var(--ic-ink);
}
.ic-topbar .ic-user > button:hover { background: var(--ic-bg); }
.ic-topbar .ic-user .ic-who { text-align: right; line-height: 1.2; }
.ic-topbar .ic-user .ic-who strong { display: block; font-weight: 600; }
.ic-topbar .ic-user .ic-who small { color: var(--ic-ink-3); font-size: 12px; }
.ic-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ic-brand-50); color: var(--ic-brand-700);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.ic-topbar .dropdown-menu { border: 1px solid var(--ic-line); border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 32, 47, .12); padding: 6px; min-width: 200px; }
.ic-topbar .dropdown-item { border-radius: 7px; padding: 8px 12px; color: var(--ic-ink); }
.ic-topbar .dropdown-item i { width: 18px; color: var(--ic-ink-3); margin-right: 6px; }
.ic-menu-toggle { display: none; border: 0; background: none; font-size: 20px; color: var(--ic-ink); padding: 6px; }

.ic-content { padding: 28px; width: 100%; max-width: 1440px; }

/* telas antigas dentro da moldura nova */
body.ic-app .content-wrapper { margin: 0; padding: 0; z-index: auto; transition: none; }
body.ic-app .page-title {
  background: var(--ic-card); border: 1px solid var(--ic-line); border-radius: var(--ic-radius);
  box-shadow: var(--ic-shadow); height: auto; min-height: 56px; padding: 12px 20px; margin-bottom: 20px;
}
body.ic-app .page-title h1 { font-size: 20px; font-weight: 700; }
body.ic-app .card { border-color: var(--ic-line); border-radius: var(--ic-radius); box-shadow: var(--ic-shadow); }
body.ic-app .btn { border-radius: 9px; }
body.ic-app .btn-primary { background: var(--ic-brand-600); border-color: var(--ic-brand-600); }
body.ic-app .btn-primary:hover, body.ic-app .btn-primary:focus { background: var(--ic-brand-700); border-color: var(--ic-brand-700); }
body.ic-app .form-control:focus { border-color: var(--ic-brand); box-shadow: 0 0 0 3px var(--ic-brand-50); }

/* cabeçalho de página nas telas novas */
.ic-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.ic-page-head h1 { font-size: 22px; font-weight: 700; margin: 0; }
.ic-page-head p { margin: 4px 0 0; color: var(--ic-ink-2); }
.ic-card { background: var(--ic-card); border: 1px solid var(--ic-line); border-radius: var(--ic-radius); box-shadow: var(--ic-shadow); }

/* modal de alterar senha */
body.ic-app .modal-content { border: 0; border-radius: 14px; }

@media (max-width: 991px) {
  .ic-sidebar { position: fixed; left: -260px; transition: left .2s; }
  .ic-sidebar.open { left: 0; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .ic-menu-toggle { display: inline-block; }
  .ic-topbar { padding: 0 16px; }
  .ic-topbar .ic-who { display: none; }
  .ic-content { padding: 20px 16px; }
}

/* ---------- Login ---------- */
.ic-login-grid { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.ic-login-hero {
  position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at -10% -10%, #19c3f5 0%, transparent 55%),
              radial-gradient(900px 500px at 110% 110%, #0a6f98 0%, transparent 60%),
              linear-gradient(160deg, #0b2233 0%, #10354d 100%);
}
.ic-login-hero .ic-logo { background: #fff; border-radius: 12px; padding: 8px 14px; height: 54px; width: auto; align-self: flex-start; }
.ic-login-hero .ic-hero-body { margin: auto 0; padding: 40px 0; max-width: 520px; }
.ic-login-hero h1 { font-size: 34px; font-weight: 700; line-height: 1.2; margin: 0 0 16px; letter-spacing: -.01em; }
.ic-login-hero p { color: #c9dbe6; font-size: 16px; }
.ic-login-hero ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ic-login-hero li { display: flex; gap: 12px; align-items: center; color: #e3eef5; }
.ic-login-hero li i { background: rgba(255, 255, 255, .12); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.ic-login-hero .ic-hero-foot { color: #8fb0c4; font-size: 13px; }
.ic-login-hero .ic-deco { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); font-size: 360px; color: rgba(255, 255, 255, .04); pointer-events: none; }

.ic-login-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.ic-login-box { width: 100%; max-width: 380px; }
.ic-login-box .ic-mobile-logo { display: none; height: 42px; margin-bottom: 24px; }
.ic-login-box h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.ic-login-box .ic-sub { color: var(--ic-ink-2); margin-bottom: 28px; }
.ic-login-box label { font-weight: 600; font-size: 13px; margin-bottom: 6px; display: block; }
.ic-login-box .form-control { height: 46px; border-radius: 10px; border-color: #d9e0e7; font-size: 15px; }
.ic-login-box .form-control:focus { border-color: var(--ic-brand); box-shadow: 0 0 0 3px var(--ic-brand-50); }
.ic-login-box .form-control.is-invalid { border-color: #e05252; }
.ic-pw { position: relative; }
.ic-pw .form-control { padding-right: 44px; }
.ic-pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ic-ink-3); padding: 6px 8px; }
.ic-login-box .ic-btn-brand {
  height: 46px; border-radius: 10px; font-size: 15px; font-weight: 600; width: 100%;
  background: var(--ic-brand-600); border: 1px solid var(--ic-brand-600); color: #fff;
}
.ic-login-box .ic-btn-brand:hover { background: var(--ic-brand-700); border-color: var(--ic-brand-700); }
.ic-login-box .ic-btn-brand:disabled { opacity: .7; }
.ic-login-box .ic-link { font-size: 13px; color: var(--ic-brand-700); background: none; border: 0; padding: 0; }
.ic-login-box .ic-link:hover { color: var(--ic-brand-600); text-decoration: underline; }
.ic-alert { display: none; gap: 8px; align-items: center; background: var(--ic-danger-bg); color: var(--ic-danger); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 16px; }
.ic-alert.show { display: flex; }
.ic-help { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ic-line); color: var(--ic-ink-2); font-size: 13px; display: flex; gap: 10px; }
.ic-help i { font-size: 17px; color: var(--ic-brand-700); margin-top: 2px; }
.ic-help a { color: var(--ic-brand-700); }

@media (max-width: 991px) {
  .ic-login-grid { grid-template-columns: 1fr; }
  .ic-login-hero { display: none; }
  .ic-login-box .ic-mobile-logo { display: block; }
}
