:root {
  --primary: #002050;
  --secondary: #dfe2e8;
  --accent: #1160b7;
  --light-accent: #b1d6f0;
  --highlight: #d24726;
  --header-height: 60px;
  --footer-height: 50px;
  --sidebar-width: 250px;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* Wrapper */
.wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
}

/* Header */
#header {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  height: var(--header-height);
  background-color: #fff;
  z-index: 998;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

#header.sidebar-collapsed {
  left: 0;
}

/* Avatar Circle */
.avatar-circle {
  width: 32px;
  height: 32px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
}

.avatar-initials {
  font-size: 16px;
  text-transform: uppercase;
}

/* Logo Container */
.logo-container {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* Banner Image */
.banner-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
}

/* Sidebar */
#sidebar {
  width: var(--sidebar-width);
  background-color: var(--primary);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 999;
  overflow-y: auto;
  transition: all 0.3s;
}

#sidebar.collapsed {
  margin-left: calc(-1 * var(--sidebar-width));
}

#sidebar .sidebar-header {
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.2);
}

#sidebar ul.components {
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar ul li a {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s;
}

#sidebar ul li a:hover,
#sidebar ul li a.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

#sidebar ul li.active > a {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
}

#sidebar ul li a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

#sidebar ul li a span {
  flex-grow: 1;
}

#sidebar ul ul a {
  padding-left: 30px;
  background-color: rgba(0, 0, 0, 0.1);
}

#sidebar ul ul ul a {
  padding-left: 45px;
}

#sidebar .dropdown-toggle::after {
  display: block;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Dropdown Toggle Arrow */
#sidebar .dropdown-toggle {
  position: relative;
}

#sidebar .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s;
}

#sidebar .dropdown-toggle[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Content */
#content {
  width: calc(100% - var(--sidebar-width));
  height: 100vh;
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

#content.sidebar-collapsed {
  width: 100%;
}

/* Main Content */
.main-content {
  margin-top: var(--header-height);
  margin-bottom: var(--footer-height);
  padding: 20px;
  overflow-y: auto;
  height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* Footer */
#footer {
  position: fixed;
  bottom: 0;
  right: 0;
  left: var(--sidebar-width);
  height: var(--footer-height);
  background-color: #fff;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 997;
  transition: all 0.3s;
}

#footer.sidebar-collapsed {
  left: 0;
}

/* Cards */
.card {
  border-radius: 10px;
  /* Hover animasyonunu kaldırdım */
  /* transition: transform 0.3s, box-shadow 0.3s; */
}

/* Card hover efektini tamamen kaldırdım */
/* .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
} */

.card-header {
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
}

/* Welcome Banner */
.welcome-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-left: 4px solid var(--accent);
}

/* Stat Cards */
.stat-card {
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.03);
  z-index: 0;
}

/* Activity Icons */
.activity-icon,
.event-date div {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Quick Access Items */
.quick-access-item {
  transition: all 0.3s;
  border-radius: 10px;
}

.quick-access-item:hover {
  background-color: var(--light-accent);
  border-color: var(--accent) !important;
}

/* Custom Button Styles */
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: #0d4d8f;
  border-color: #0d4d8f;
}

/* Badge Styles */
.badge.bg-primary {
  background-color: var(--accent) !important;
}

/* Chart Containers */
.chart-container {
  position: relative;
  width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* List Group Customization */
.list-group-item {
  transition: background-color 0.3s;
}

.list-group-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Responsive */
@media (max-width: 768px) {
  #sidebar {
    margin-left: calc(-1 * var(--sidebar-width));
  }

  #sidebar.active {
    margin-left: 0;
  }

  #header,
  #footer {
    left: 0;
  }

  #content {
    width: 100%;
  }

  #header.active,
  #footer.active {
    left: var(--sidebar-width);
  }

  #content.active {
    width: calc(100% - var(--sidebar-width));
  }
}
