/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* Layout */
.wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background-color: #2c3e50;
  color: #fff;
  position: fixed;
  height: 100%;
  overflow-y: auto;
  transition: all 0.3s;
  z-index: 1000;
}

.sidebar-header {
  padding: 20px;
  background-color: #1a2530;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-header h3 {
  color: #fff;
  margin-left: 10px;
}

.sidebar-menu {
  padding: 10px 0;
}

.sidebar-menu ul {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 5px;
}

.sidebar-menu a {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  color: #ecf0f1;
  text-decoration: none;
  transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background-color: #34495e;
  color: #fff;
}

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

/* Main content */
.main-content {
  flex: 1;
  margin-left: 250px;
  transition: all 0.3s;
}

/* Header */
.header {
  background-color: #fff;
  padding: 15px 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: end;
  position: sticky;
  top: 0;
  z-index: 100;
}

.toggle-sidebar {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: none;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 20px;
  padding: 5px 15px;
  width: 300px;
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  padding: 5px;
  width: 100%;
}

.search-box i {
  color: #7f8c8d;
}

.user-menu {
  display: flex;
  align-items: center;
  margin-left: auto; 

}

.user-menu .notification {
  position: relative;
  /* margin-right: 20px; */
  cursor: pointer;
}

.user-menu .notification .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #e74c3c;
  color: #fff;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-profile img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Content area */
.content {
  padding: 20px 30px;
}

.page-title {
  margin-bottom: 20px;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 600;
}

/* Cards */
.card {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
}

/* Dashboard stats */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  align-items: center;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #3498db;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 20px;
}

.stat-icon.blue {
  background-color: #3498db;
}
.stat-icon.green {
  background-color: #2ecc71;
}
.stat-icon.orange {
  background-color: #f39c12;
}
.stat-icon.red {
  background-color: #e74c3c;
}
.stat-icon.purple {
  background-color: #9b59b6;
}
.stat-icon.teal {
  background-color: #1abc9c;
}

.stat-info h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}

.stat-info p {
  color: #7f8c8d;
  font-size: 14px;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
  align-items: stretch;
}

.data-table th {
  background-color: #f9f9f9;
  font-weight: 600;
}

.data-table tbody tr:hover {
  background-color: #f5f5f5;
}

.data-table .actions {
  white-space: nowrap;
  word-spacing: 10px;
}

.data-table .actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.data-table .actions .view {
  color: #3498db;
}
.data-table .actions .edit {
  color: #f39c12;
}
.data-table .actions .delete {
  color: #e74c3c;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.table-info {
  color: #7f8c8d;
  font-size: 14px;
}

.pagination {
  display: flex;
  list-style: none;
}

.pagination li {
  margin: 0 5px;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
}

.pagination a:hover,
.pagination a.active {
  background-color: #3498db;
  color: #fff;
  border-color: #3498db;
}

/* Buttons */
.btn {
  padding: 8px 15px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #3498db;
  color: #fff;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-success {
  background-color: #2ecc71;
  color: #fff;
}

.btn-success:hover {
  background-color: #27ae60;
}

.btn-danger {
  background-color: #e74c3c;
  color: #fff;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.btn-warning {
  background-color: #f39c12;
  color: #fff;
}

.btn-warning:hover {
  background-color: #d35400;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #ddd;
  color: #333;
}

.btn-outline:hover {
  background-color: #f5f5f5;
}

/* Status badges */
.badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-success {
  background-color: #d5f5e3;
  color: #27ae60;
}

.badge-danger {
  background-color: #fadbd8;
  color: #c0392b;
}

.badge-warning {
  background-color: #fef9e7;
  color: #d35400;
}

.badge-info {
  background-color: #ebf5fb;
  color: #2980b9;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-control:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.form-col {
  flex: 1;
  padding: 0 10px;
  min-width: 200px;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.form-check-input {
  margin-right: 10px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  display: none;
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  background-color: #fff;
  border-radius: 5px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
  .sidebar {
    margin-left: -250px;
  }

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

  .main-content {
    margin-left: 0;
  }

  .main-content.active {
    margin-left: 250px;
  }

  .toggle-sidebar {
    display: block;
  }

  .stats-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .header {
    padding: 15px;
  }

  .search-box {
    width: 200px;
  }

  .content {
    padding: 15px;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .form-col {
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .search-box {
    display: none;
  }

  .user-profile span {
    display: none;
  }
}
