/*
 * DrivePark — Admin theme (padrão Nice Admin / BootstrapMade)
 *
 * O zip oficial do Nice Admin fica atrás de um checkout Paddle com captura de
 * e-mail (não é um download direto), então este arquivo reimplementa a mesma
 * estrutura visual (sidebar fixa + header fixo + área de conteúdo) usada pelo
 * tema, para ser substituído pelo style.css oficial se ele for obtido depois.
 */

:root {
  --dp-primary: #4154f1;
  --dp-sidebar-bg: #ffffff;
  --dp-sidebar-width: 300px;
  --dp-header-height: 60px;
  --dp-body-bg: #f6f9ff;
  --dp-nav-color: #012970;
  --dp-nav-hover-bg: #f6f9ff;
}

body {
  font-family: "Nunito", "Segoe UI", Roboto, sans-serif;
  background-color: var(--dp-body-bg);
  color: #444444;
}

a {
  text-decoration: none;
}

/* ===== Header ===== */
.dp-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--dp-header-height);
  z-index: 1030;
  background-color: #fff;
  border-bottom: 1px solid #e6ecf3;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.dp-header .dp-logo {
  width: calc(var(--dp-sidebar-width) - 20px);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--dp-nav-color);
}

.dp-toggle-sidebar-btn {
  font-size: 26px;
  cursor: pointer;
  color: #012970;
  border: none;
  background: none;
}

.dp-header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.dp-header-nav .dp-profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Sidebar ===== */
.dp-sidebar {
  position: fixed;
  top: var(--dp-header-height);
  left: 0;
  bottom: 0;
  width: var(--dp-sidebar-width);
  background-color: var(--dp-sidebar-bg);
  border-right: 1px solid #e6ecf3;
  overflow-y: auto;
  z-index: 1020;
  transition: left 0.3s ease;
}

.dp-nav {
  list-style: none;
  padding: 15px;
  margin: 0;
}

.dp-nav-item {
  margin-bottom: 5px;
}

.dp-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 6px;
  color: var(--dp-nav-color);
  font-weight: 600;
  font-size: 15px;
  transition: 0.3s;
}

.dp-nav-link i {
  font-size: 18px;
}

.dp-nav-link.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Título de seção do menu (ex.: "Mensalistas") */
.dp-nav-heading {
  padding: 12px 15px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #899bbd;
}

.dp-nav-link:hover,
.dp-nav-link.active {
  color: var(--dp-primary);
  background-color: var(--dp-nav-hover-bg);
}

/* ===== Main content ===== */
.dp-main {
  margin-top: var(--dp-header-height);
  margin-left: var(--dp-sidebar-width);
  padding: 20px 30px;
  transition: margin-left 0.3s ease;
}

.dp-page-title h1 {
  font-size: 24px;
  font-weight: 600;
  color: #012970;
}

/* Sidebar recolhida (toggle pelo header) */
body.dp-toggle-sidebar .dp-sidebar {
  left: calc(var(--dp-sidebar-width) * -1);
}

body.dp-toggle-sidebar .dp-main {
  margin-left: 0;
}

@media (max-width: 991px) {
  .dp-sidebar {
    left: calc(var(--dp-sidebar-width) * -1);
  }

  .dp-main {
    margin-left: 0;
  }

  body.dp-toggle-sidebar .dp-sidebar {
    left: 0;
  }

  body.dp-toggle-sidebar .dp-main {
    margin-left: 0;
  }

  .dp-header .dp-logo {
    width: auto;
  }
}

/* ===== Cards de KPI (dashboard) ===== */
.dp-kpi-card {
  border: 1px solid #e6ecf3;
  border-radius: 8px;
  background: #fff;
}

.dp-kpi-card .dp-kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* ===== Auth (guest layout) ===== */
.dp-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dp-body-bg);
}

.dp-auth-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid #e6ecf3;
  border-radius: 10px;
}

.dp-auth-logo {
  font-size: 26px;
  font-weight: 700;
  color: var(--dp-nav-color);
}

/* ==========================================================================
   Landing pública (layouts/public.blade.php)
   Fica no fim do arquivo, separado do tema do painel — a landing não usa
   sidebar/header do Nice Admin.
   ========================================================================== */

.dp-public {
    background: #fff;
}

.dp-public-nav {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e6e9f0;
    padding: .6rem 0;
}

.dp-public-nav .navbar-brand {
    color: #012970;
    font-size: 1.25rem;
}

.dp-public-nav .nav-link {
    color: #4154f1;
    font-weight: 500;
}

.dp-public-nav .nav-link:hover {
    color: #012970;
}

/* --- Hero --- */
.dp-hero {
    padding: 4.5rem 0 4rem;
    background: linear-gradient(180deg, #f6f9ff 0%, #fff 100%);
}

.dp-hero h1 {
    color: #012970;
    line-height: 1.15;
}

.dp-hero-badge {
    background: #e7f1ff;
    color: #0d5bd1;
    font-weight: 600;
    padding: .5rem .9rem;
    border-radius: 2rem;
}

.dp-hero-checks li {
    color: #444;
    margin-bottom: .35rem;
}

.dp-hero-checks i {
    color: #2eca6a;
}

/* --- Seções --- */
.dp-section {
    padding: 4.5rem 0;
}

.dp-section h2 {
    color: #012970;
}

.dp-section-alt {
    background: #f6f9ff;
}

/* --- Prints do sistema --- */
.dp-shot {
    border-radius: .75rem;
    border: 1px solid #e6e9f0;
    box-shadow: 0 1rem 2.5rem rgba(1, 41, 112, .12);
    width: 100%;
}

.dp-shot-hero {
    box-shadow: 0 1.5rem 3rem rgba(1, 41, 112, .18);
}

.dp-shot-row {
    margin-bottom: 3.5rem;
}

.dp-shot-row:last-child {
    margin-bottom: 0;
}

/* --- Cards de recurso e de módulo --- */
.dp-feature-card,
.dp-module-card {
    border: 1px solid #e6e9f0;
    border-radius: .75rem;
    transition: transform .18s ease, box-shadow .18s ease;
}

.dp-feature-card:hover,
.dp-module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .75rem 1.5rem rgba(1, 41, 112, .1);
}

.dp-feature-icon {
    width: 46px;
    height: 46px;
    border-radius: .6rem;
    background: #e7f1ff;
    color: #4154f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.dp-module-price {
    color: #012970;
    font-size: 1.5rem;
    font-weight: 700;
}

/* --- CTA final --- */
.dp-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #4154f1 0%, #012970 100%);
    color: #fff;
}

/* --- Rodapé --- */
.dp-public-footer {
    padding: 2rem 0;
    background: #012970;
    color: rgba(255, 255, 255, .85);
}

.dp-public-footer a {
    color: #fff;
    text-decoration: none;
}

.dp-public-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .dp-hero {
        padding: 3rem 0;
        text-align: center;
    }

    .dp-hero-checks {
        display: inline-block;
        text-align: left;
    }

    .dp-section {
        padding: 3rem 0;
    }
}
