:root {
  --bg: #050505;
  --card: #101010;
  --card-hover: #171717;

  --border: rgba(255, 255, 255, 0.08);

  --text: #ffffff;
  --text-light: #a0a0a0;

  --radius: 28px;

    --cor9: rgba(255, 255, 255, 0.015);

      --cor24: #050505;

        --cor45: #090909;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {

      background: linear-gradient(var(--cor9) 1px, transparent 1px), linear-gradient(90deg, var(--cor9) 1px, transparent 1px), linear-gradient(180deg, var(--cor24), var(--cor45));
    background-size: 80px 80px, 80px 80px, cover;

  font-weight: 300;

  color: var(--text);

  font-family: "Outfit", sans-serif;

  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
}

/* LAYOUT */

.layout {
  min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
  width: 280px;

  position: fixed;

  left: 0;
  top: 0;
  bottom: 0;

  padding: 40px 25px;

  border-right: 1px solid var(--border);

  background: #080808;

  z-index: 50;
}

.logo {
  font-size: 24px;

  font-weight: 800;

  letter-spacing: 2px;

  margin-bottom: 50px;
}

.sidebar-menu {
  display: flex;

  flex-direction: column;

  gap: 12px;
}

.sidebar-menu a {
  height: 60px;

  border-radius: 18px;

  display: flex;

  align-items: center;

  gap: 14px;

  padding: 0 20px;

  color: #c5c5c5;

  transition: 0.3s;
}

.sidebar-menu a:hover {
  background: #141414;

  color: #fff;
}

.sidebar-menu a.active {
  background: #fff;

  color: #000;

  font-weight: 700;
}

.sidebar-menu svg {
  width: 20px;
  height: 20px;
}

/* CONTENT */

.content {
  flex: 1;

  margin-left: 280px;

  padding: 40px;
}

/* TOPBAR */

.topbar {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 40px;
}

.topbar h1 {
  font-size: 42px;

  margin-bottom: 5px;
}

.topbar p {
  color: var(--text-light);
}

.topbar-actions {
  display: flex;

  align-items: center;

  gap: 15px;
}

.topbar-actions button {
  width: 55px;

  height: 55px;

  border-radius: 50%;

  background: #111;

  color: #fff;

  display: flex;

  align-items: center;

  justify-content: center;
}

.topbar-actions img {
  width: 55px;

  height: 55px;

  border-radius: 50%;

  object-fit: cover;
}

/* HERO */

.hero {
  display: grid;

  grid-template-columns: 1.2fr 1fr;

  gap: 30px;

  align-items: center;

  background: linear-gradient(180deg, #0a0a0a, #121212);

  border: 1px solid var(--border);

  border-radius: 40px;

  padding: 35px;

  margin-bottom: 35px;
}

.hero-content span {
  display: inline-flex;

  padding: 10px 16px;

  background: #141414;

  border-radius: 999px;

  font-size: 13px;

  margin-bottom: 20px;
}

.hero-content h2 {
  font-size: 58px;

  line-height: 1.1;

  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;

  color: var(--text-light);

  line-height: 1.8;

  max-width: 600px;
}

.hero-buttons {
  display: flex;

  gap: 15px;

  margin-top: 30px;
}

.btn-primary {
  background: #fff;

  color: #000;

  height: 58px;

  padding: 0 28px;

  border-radius: 18px;

  font-weight: 700;
}

.btn-secondary {
  background: #141414;

  color: #fff;

  height: 58px;

  padding: 0 28px;

  border-radius: 18px;
}

.hero-image img {
  width: 100%;

  height: 420px;

  object-fit: cover;

  border-radius: 30px;

  filter: grayscale(100%);
}

/* STATS */

.stats-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;

  margin-bottom: 35px;
}

.stat-card {
  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 28px;

  padding: 30px;

  transition: 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);

  background: var(--card-hover);
}

.stat-card h3 {
  font-size: 48px;

  margin-bottom: 10px;
}

.stat-card p {
  color: var(--text-light);
}

/* DASHBOARD */

.dashboard-grid {
  display: grid;

  grid-template-columns: 2fr 380px;

  gap: 25px;
}

.card {
  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 30px;

  padding: 30px;
}

.card-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 25px;
}

.card-header a {
  color: #999;
}

/* OCCURRENCES */

.occurrence-list {
  display: flex;

  flex-direction: column;

  gap: 15px;
}

.occurrence {
  display: flex;

  align-items: center;

  gap: 15px;

  background: #161616;

  border-radius: 22px;

  padding: 15px;
}

.occurrence img {
  width: 80px;

  height: 80px;

  border-radius: 16px;

  object-fit: cover;
}

.occurrence h4 {
  font-size: 18px;

  margin-bottom: 6px;
}

.occurrence span {
  color: #999;
}

/* QUICK ACTIONS */

.quick-actions {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 15px;

  margin-top: 20px;
}

.quick-actions button {
  height: 90px;

  background: #171717;

  border-radius: 20px;

  color: #fff;

  font-size: 26px;
}

.quick-actions button:hover {
  background: #222;
}

/* MOBILE NAV */

.mobile-nav {
  display: none;
}

/* TABLET */

@media (max-width: 1200px) {

  .sidebar{
      display:none;
  }

  .content{
      margin-left:0;
      padding:25px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    height: 320px;
  }
}

/* MOBILE */

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .content {
    margin-left: 0;

    padding: 20px 20px 120px;
  }

  .topbar h1 {
    font-size: 28px;
  }

  .hero {
    padding: 25px;
  }

  .hero-content h2 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-card h3 {
    font-size: 34px;
  }

  .mobile-nav {
    position: fixed;

    bottom: 15px;

    left: 50%;

    transform: translateX(-50%);

    width: 95%;

    max-width: 500px;

    height: 85px;

    border-radius: 28px;

    background: rgba(12, 12, 12, 0.95);

    backdrop-filter: blur(20px);

    border: 1px solid var(--border);

    display: flex;

    justify-content: space-around;

    align-items: center;

    z-index: 999;
  }

  .mobile-nav a {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;

    font-size: 11px;

    color: #999;
  }

  .mobile-nav a.active {
    color: #fff;
  }

  .mobile-nav a svg {
    width: 22px;
    height: 22px;
  }

  .mobile-nav .middle {
    width: 65px;

    height: 65px;

    border-radius: 50%;

    background: #fff;

    color: #000;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-top: -30px;

    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
  }

  .mobile-nav .middle span {
    display: none;
  }
}


