/* General Styles */
:root {
  --primary-color: #4e73df;
  --secondary-color: #1cc88a;
  --danger-color: #e74a3b;
  --warning-color: #f6c23e;
  --info-color: #36b9cc;
  --dark-color: #5a5c69;
  --light-color: #f8f9fc;
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 80px;
  --header-height: 60px;
}

body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #aecaeb;
  overflow-x: hidden;
}

/* Wrapper */
.wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
}

/* Sidebar */
.sidebar {
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background: #4e73df;
  background: linear-gradient(180deg, #4f6cc3 10%, #3a3c45 100%);
  color: #e9ab1a;
  transition: all 0.3s;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 999;
  overflow-y: auto;
}

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

.sidebar .sidebar-header {
  padding: 20px;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.sidebar ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar ul li a {
  padding: 10px 20px;
  font-size: 1.1em;
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s;
}

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

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

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

.sidebar ul li a[aria-expanded="true"] {
  color: #fff;
  background: rgba(0, 0, 0, 0.1);
}

.sidebar ul ul a {
  font-size: 0.9em !important;
  padding-left: 50px !important;
  background: rgba(0, 0, 0, 0.1);
}

.sidebar-user-info {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.1);
}

.user-details {
  display: flex;
  align-items: center;
}

.user-avatar {
  margin-right: 15px;
}

.user-info {
  flex-grow: 1;
}

.user-name {
  margin: 0;
  font-weight: bold;
  color: #fff;
}

.user-role {
  margin: 0;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.7);
}

/* Content */
#content {
  width: 100%;
  min-height: 100vh;
  transition: all 0.3s;
  position: relative;
  margin-left: var(--sidebar-width);
  padding-left: 0; /* Yeni eklenen satır */
}

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

.content-container {
  padding: 20px;
}

/* Navbar */
.navbar {
  padding: 15px 10px;
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.navbar .container-fluid {
  padding: 0;
}

#sidebarCollapse {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Cards */
.card {
  border: none;
  border-radius: 0.35rem;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  margin-bottom: 1.5rem;
}

.card-header {
  background-color: #94dee5;
  border-bottom: 1px solid #e3e6f0;
  padding: 0.75rem 1.25rem;
}

.card-header h6 {
  font-weight: 700;
  margin: 0;
}

/* Dashboard Cards */
.dashboard-card {
  border-left: 1.25rem solid;
  border-radius: 4.35rem;
}

.dashboard-card.primary {
  border-left-color: var(--primary-color);
}

.dashboard-card.success {
  border-left-color: var(--secondary-color);
}

.dashboard-card.warning {
  border-left-color: var(--warning-color);
}

.dashboard-card.danger {
  border-left-color: var(--danger-color);
}

.dashboard-card .card-body {
  padding: 1.25rem;
}

.dashboard-card .card-title {
  text-transform: uppercase;
  color: var(--dark-color);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dashboard-card .card-value {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0;
}

.dashboard-card .card-icon {
  font-size: 2rem;
  opacity: 0.3;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
}

.table th {
  vertical-align: bottom;
  border-bottom: 2px solid #e3e6f0;
  background-color: #f8f9fc;
}

.table td,
.table th {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #e3e6f0;
}

/* Forms */
.form-control:focus {
  border-color: #bac8f3;
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-label {
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #2e59d9;
  border-color: #2653d4;
}

.btn-success {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-success:hover {
  background-color: #17a673;
  border-color: #169b6b;
}

.btn-danger {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}

.btn-danger:hover {
  background-color: #e02d1b;
  border-color: #d52a1a;
}

/* Notifications */
.notification-dropdown .dropdown-menu {
  min-width: 300px;
  padding: 0;
}

.notification-menu .dropdown-header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.5rem 1rem;
}

.notification-menu .dropdown-item {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e3e6f0;
  white-space: normal;
}

.notification-menu .dropdown-item.unread {
  background-color: rgba(78, 115, 223, 0.05);
  font-weight: bold;
}

.notification-menu .dropdown-item:last-child {
  border-bottom: none;
}

/* Login Page */
.login-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background-color: rgba(0,0,0,0.125);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo h1 {
  color: #ffa00d;
  font-weight: 700;
}

/* Charts */
.chart-container {
  position: relative;
  height: 300px;
}

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

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

  #content {
    margin-left: 0;
  }

  #content.active {
    margin-left: var(--sidebar-width);
  }

  #sidebarCollapse span {
    display: none;
  }
}

/* Mobile Navbar */
.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hide desktop sidebar on mobile */
@media (max-width: 767.98px) {
  #sidebar {
    display: none;
  }

  #content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile navbar styling */
  .navbar {
    padding: 0.5rem 1rem;
  }

  .navbar-collapse {
    background-color: #f8f9fc;
    padding: 1rem;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-top: 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

  /* Adjust card margins for mobile */
  .card {
    margin-bottom: 1rem;
  }

  /* Adjust table responsiveness */
  .table-responsive {
    margin-bottom: 1rem;
  }

  /* Adjust dashboard cards for mobile */
  .dashboard-card {
    margin-bottom: 1rem;
  }

  /* Adjust chart containers for mobile */
  .chart-container {
    height: 250px;
  }
}
