/* ---------- RESET & GLOBAL ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  color: #0a1c2f;
  line-height: 1.5;
}

/* Pages container */
.page {
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.page.active-page {
  display: block;
  opacity: 1;
}

/* ---------- LANDING PAGE (Axiom Company) ---------- */
.landing-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, #1b3b6f, #2a5f8a);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.logo-text {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b2b44;
}

.logo-text span {
  font-weight: 400;
  color: #2d6a9f;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  color: #2c3e50;
  transition: 0.2s;
}

.nav-link:hover {
  color: #1e6faf;
}

.btn-outline-light {
  background: transparent;
  border: 1.5px solid #1e6faf;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-weight: 600;
  color: #1e6faf;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-light:hover {
  background: #1e6faf10;
  border-color: #0f4c7a;
}

.hero-section {
  text-align: center;
  margin-bottom: 4rem;
}

.hero-badge {
  background: #eef3fc;
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e6faf;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 1.2rem;
}

.gradient-text {
  background: linear-gradient(135deg, #1f6392, #2c7cb6);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: #334e68;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.btn-primary {
  background: #0f3b5c;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.btn-primary:hover {
  background: #1c5982;
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  border: 1px solid #cad6e3;
  padding: 0.85rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1rem;
}

.stat {
  font-size: 0.9rem;
  color: #3f5e7c;
}

.stat span {
  font-weight: 800;
  font-size: 1.2rem;
  color: #1b5a7e;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.service-card {
  background: white;
  border-radius: 28px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
  transition: 0.2s;
  border: 1px solid #eef2f8;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #cbdde9;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.why-section {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
  background: #eef3fa;
  border-radius: 40px;
  padding: 3rem;
  margin: 3rem 0;
}

.why-text {
  flex: 1;
}

.why-text h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.why-text ul {
  list-style: none;
  margin-top: 1.2rem;
}

.why-text li {
  margin: 0.7rem 0;
  font-weight: 500;
}

.why-visual {
  flex: 0.7;
  background: #ffffffaa;
  border-radius: 32px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #2a6c9e;
}

.visual-badge {
  background: #0f3b5c;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  font-weight: 600;
}

.landing-footer {
  text-align: center;
  padding-top: 3rem;
  color: #5c6f87;
  border-top: 1px solid #e2e8f0;
  margin-top: 2rem;
}

/* ---------- LOGIN PAGE ---------- */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(125deg, #eef2f9 0%, #d9e4ef 100%);
  padding: 1rem;
}

.login-card {
  background: white;
  max-width: 440px;
  width: 100%;
  border-radius: 48px;
  padding: 2.5rem;
  box-shadow: 0 25px 45px -12px rgba(0,0,0,0.2);
  text-align: center;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.login-logo span {
  font-weight: 400;
  color: #1e6faf;
}

.login-card h3 {
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
}

.login-sub {
  color: #6c86a3;
  font-size: 0.8rem;
  margin-bottom: 1.8rem;
}

.input-group {
  text-align: left;
  margin-bottom: 1.2rem;
}

.input-group label {
  font-weight: 500;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.4rem;
}

.input-group input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  border: 1px solid #cfdfed;
  font-size: 1rem;
  transition: 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: #2f7eb3;
  box-shadow: 0 0 0 3px #cbe4fe;
}

.full-width {
  width: 100%;
  margin-top: 0.7rem;
}

.login-error {
  color: #cd3c3c;
  font-size: 0.8rem;
  margin-top: 0.8rem;
  background: #ffe8e8;
  padding: 0.5rem;
  border-radius: 60px;
}

.hidden {
  display: none;
}

.text-link {
  background: none;
  border: none;
  color: #2c6b9b;
  margin-top: 1.2rem;
  cursor: pointer;
  font-weight: 500;
}

/* ---------- DASHBOARD (MAIN PAGE - law firm mgmt) ---------- */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  background: #f4f7fc;
}

.dashboard-sidebar {
  width: 290px;
  background: #ffffff;
  border-right: 1px solid #e2edf7;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 12px rgba(0,0,0,0.02);
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem 1.2rem;
  border-bottom: 1px solid #ecf3f9;
}

.sidebar-header .logo-small {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.3rem;
}

.menu-list {
  flex: 1;
  padding: 1rem 0.7rem;
  list-style: none;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  margin: 4px 0;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #1f3b4c;
}

.menu-item i {
  font-style: normal;
  font-weight: normal;
  font-size: 1.2rem;
}

.menu-item:hover {
  background: #eef3fc;
}

.menu-item.active-menu {
  background: #e1eff9;
  color: #0f5985;
  border-left: 3px solid #2f7eb3;
}

.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dashboard-topbar {
  background: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e7edf4;
}

.user-welcome {
  font-weight: 600;
}

.logout-btn {
  background: none;
  border: 1px solid #cbdde9;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.logout-btn:hover {
  background: #fee2e2;
  border-color: #cfb1b1;
}

.content-area {
  padding: 2rem;
  overflow-y: auto;
}

.dashboard-card {
  background: white;
  border-radius: 28px;
  padding: 1.8rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.02);
  border: 1px solid #eef2fa;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
  color: #0b2f48;
}

.section-desc {
  color: #4b6f8c;
  margin-bottom: 1.8rem;
  border-left: 3px solid #89bbdf;
  padding-left: 1rem;
}

.placeholder-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.stat-badge {
  background: #f0f6fe;
  padding: 0.5rem 1rem;
  border-radius: 60px;
  font-size: 0.85rem;
}

@media (max-width: 780px) {
  .dashboard-container {
    flex-direction: column;
  }
  .dashboard-sidebar {
    width: 100%;
    max-height: 320px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .landing-nav {
    flex-direction: column;
  }
}
