@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "DM Sans", sans-serif;
}

:root {
  --main-color: #2563eb;
  --main-white: #FFFFFF;
  --main-black: #111827;
  --darker-blue: #1e40af;
  --light-gray: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

:root.dark{
    --main-color: #08244F;
    --main-white: #FFFFFF;
    --main-black: #000000;
    --darker-blue: #0E3B83;
}

body {
  background-color: #f3f4f6; 
}

header{
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    height: 100%;
    overflow: hidden;
    background-color: var(--darker-blue);
    color: var(--main-white);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.sidebar a{
  color: var(--main-white);
}

.sidebar-logo {
    margin-top: 12px;
}

.sidebar-section {
  margin-top: 12px;
  width: 100%;
  border-top: 1px solid var(--main-white);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 12px auto;
  border-radius: 8px;
  transition: background-color 0.2s, color 0.2s;
  text-decoration: none;
  color: inherit;
}

.sidebar-item:hover, .sidebar-item.active {
  background-color: var(--main-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.icon {
  width: 24px;
  height: 24px;
}

.icon-large {
  width: 32px;
  height: 32px;
}

.sidebar-footer {
  margin-top: auto;
  width: 64px;
  height: 64px;
  background-color: var(--main-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
  text-decoration: none;
  color: inherit;
}

.sidebar-footer:hover {
  background-color: var(--main-white);
  color: var(--main-black);
}


@media (max-width: 768px) {
  header{
    display: none; /* HEADER GEÇİCİ BURAYA BAKILACAK.*/
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}
.mobile-menu.active {
  display: block;
}
.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
}
.mobile-menu-content {
  margin-top: 20px;
}
.mobile-menu-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  font-size: 18px;
  color: #333;
  text-decoration: none;
}
.mobile-menu-item i {
  margin-right: 10px;
}
.mobile-menu-trigger {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  z-index: 999;
  color: var(--main-white);
}

@media (max-width: 768px) {
  .sidebar {
      display: none;
  }
  .mobile-menu-trigger {
      display: block !important;
  }
}
