/* Admin Panel Styles */
:root {
  --primary-color: #ff6600;
  --secondary-color: #ffffff;
  --success-color: #2ecc71;
  --danger-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #34495e;
  --text-color: #333;
  --link-color: #c6c6c6;
  --sidebar-width: 250px;
  --header-height: 60px;
  --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: var(--text-color);
  line-height: 1.6;
}

/* Login Page Styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 400px;
  padding: 30px;
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo img {
  max-width: 150px;
  height: auto;
}

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

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

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

.btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-block {
  display: block;
  width: 100%;
}

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

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

.btn-secondary {
  border-color: #95a5a6;
  color: #95a5a6;
}

.btn-secondary:hover {
  background-color: #95a5a6;
  color: white;
}

/* Admin Layout Styles */
.admin-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background-color: var(--secondary-color);
  color: var(--text-color);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  transition: all 0.3s;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: white;
}

.sidebar-header img {
  max-width: 120px;
  height: auto;
  border-radius: 5px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
  padding: 5px;
}

.sidebar-menu {
  padding: 10px 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
  width: 5px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.1);
}

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

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

.sidebar-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  border-left: 4px solid transparent;
  font-size: 14px;
}

.sidebar-menu a:hover {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--text-color);
}

.sidebar-menu a.active {
  background-color: rgba(255, 102, 0, 0.05);
  border-left: 4px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 500;
}

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

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 0;
  transition: all 0.3s;
}

.main-content-inner {
  padding: 20px;
  margin-top: 20px;
}

.top-bar {
  background-color: var(--secondary-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  color: var(--text-color);
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-color);
  position: relative;
}

.page-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 8px 15px;
  border-radius: 50px;
  background-color: rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-info:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
}

.user-name {
  font-weight: 500;
  font-size: 14px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
}

.top-bar-left {
  gap: 15px;
}

.top-bar-right {
  gap: 20px;
}

.notifications {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.notifications:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger-color);
  color: white;
  font-size: 10px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
}

.sidebar-toggle {
  display: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.sidebar-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-toggle:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.sidebar-toggle:hover:before {
  transform: scale(1);
}

.sidebar-toggle .toggle-icon {
  width: 18px;
  height: 14px;
  position: relative;
  transform: rotate(0deg);
  transition: 0.5s ease-in-out;
}

.sidebar-toggle .toggle-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: white;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.sidebar-toggle .toggle-icon span:nth-child(1) {
  top: 0px;
}

.sidebar-toggle .toggle-icon span:nth-child(2),
.sidebar-toggle .toggle-icon span:nth-child(3) {
  top: 6px;
}

.sidebar-toggle .toggle-icon span:nth-child(4) {
  top: 12px;
}

.sidebar-toggle.active .toggle-icon span:nth-child(1) {
  top: 6px;
  width: 0%;
  left: 50%;
}

.sidebar-toggle.active .toggle-icon span:nth-child(2) {
  transform: rotate(45deg);
}

.sidebar-toggle.active .toggle-icon span:nth-child(3) {
  transform: rotate(-45deg);
}

.sidebar-toggle.active .toggle-icon span:nth-child(4) {
  top: 6px;
  width: 0%;
  left: 50%;
}

.page-title {
  font-size: 20px;
  font-weight: 500;
}

.content-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 20px;
  margin-bottom: 20px;
}

/* Table Styles */
.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 #ddd;
}

.data-table th {
  background-color: #f8f9fa;
  font-weight: 500;
}

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

/* Form Page Styles */
.form-card {
  width: 100%;
}

/* CKEditor Styles */
.cke_chrome {
  border: 1px solid #ddd !important;
  border-radius: 4px;
  box-shadow: none !important;
}

.cke_top {
  border-bottom: 1px solid #ddd !important;
  background: #f8f9fa !important;
}

.cke_bottom {
  border-top: 1px solid #ddd !important;
  background: #f8f9fa !important;
}

.form-title {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

/* View Page Styles */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.user-profile {
  padding: 20px 0;
}

.profile-header {
  display: flex;
  margin-bottom: 30px;
}

.profile-avatar {
  margin-right: 30px;
}

.profile-info h3 {
  margin-bottom: 10px;
}

.profile-details {
  margin-bottom: 30px;
}

.detail-row {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
}

.detail-label {
  font-weight: 500;
  width: 120px;
  color: var(--secondary-color);
}

.detail-value {
  flex: 1;
}

.profile-actions {
  display: flex;
  gap: 10px;
}

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

.form-col {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 10px;
}

@media (max-width: 768px) {
  .form-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

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

  .main-content.pushed {
    margin-left: var(--sidebar-width);
  }
}

/* Dashboard Summary Cards */
.stats-cards {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px 20px;
}

.stat-card {
  flex: 1 1 200px;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 20px;
  margin: 0 10px 20px;
  display: flex;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 24px;
  color: white;
}

.stat-card-info {
  flex: 1;
}

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

.stat-card-title {
  font-size: 14px;
  color: #7f8c8d;
  text-transform: uppercase;
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-success {
  background-color: var(--success-color);
}

.bg-warning {
  background-color: #f39c12;
}

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

.bg-info {
  background-color: #3498db;
}

.bg-secondary {
  background-color: var(--secondary-color);
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 280px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-header h6 {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

.dropdown-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 12px;
}

.dropdown-link:hover {
  text-decoration: underline;
}

.dropdown-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.05);
  margin: 0;
}

.dropdown-item {
  display: block;
  padding: 12px 15px;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.3s;
}

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

.dropdown-item i {
  margin-right: 10px;
  color: var(--primary-color);
  width: 16px;
  text-align: center;
}

.dropdown-footer {
  padding: 10px 15px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-color: rgba(0, 0, 0, 0.01);
}

/* Notification Dropdown Styles */
.notification-dropdown {
  width: 320px;
}

.notification-item {
  display: flex;
  align-items: center;
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: white;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-text {
  margin: 0 0 3px 0;
  font-size: 13px;
  color: var(--text-color);
}

.notification-time {
  margin: 0;
  font-size: 11px;
  color: #95a5a6;
}

/* User Dropdown Styles */
.user-dropdown {
  width: 200px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 15px;
}

.mb-3 {
  margin-bottom: 15px;
}

.text-danger {
  color: var(--danger-color);
}

.text-success {
  color: var(--success-color);
}

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

.badge-success {
  background-color: rgba(46, 204, 113, 0.2);
  color: var(--success-color);
}

.badge-danger {
  background-color: rgba(231, 76, 60, 0.2);
  color: var(--danger-color);
}

.badge-warning {
  background-color: rgba(241, 196, 15, 0.2);
  color: #f39c12;
}
