.admin-layout {
  min-height: 100vh;
  background: linear-gradient(135deg, #1A1629 0%, #251F3B 50%, #1A1629 100%);
  display: flex;
  position: relative;
}

.admin-layout::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/img/background_1.jpg') top center / cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.admin-content {
  flex: 1;
  margin-left: 280px;
  padding: 2.5rem;
  transition: margin-left 0.3s ease;
  position: relative;
  z-index: 1;
}

.content-wrapper {
  max-width: 1600px;
  margin: 0 auto;
}

.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.sidebar-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 1.5rem 0;
  overflow-y: auto;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin: 0.3rem 1rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  width: calc(100% - 2rem);
  text-align: left;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item i:first-child {
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

.arrow-icon {
  margin-left: auto;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-item:hover .arrow-icon {
  opacity: 1;
}

.nav-item.active {
  background: rgba(157, 124, 255, 0.25);
  color: #9D7CFF;
  border-color: rgba(157, 124, 255, 0.4);
}

.nav-item.active .arrow-icon {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.footer-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
}

.footer-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }
}

.admin-page {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.btn-add {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  background: rgba(157, 124, 255, 0.25);
  border: 1px solid rgba(157, 124, 255, 0.4);
  border-radius: 12px;
  color: #9D7CFF;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-add:hover {
  background: rgba(157, 124, 255, 0.35);
}

.btn-add i {
  font-size: 1.1rem;
}

.alert {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 1.5rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2rem;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-alert {
  background: rgba(0, 184, 148, 0.2);
  border: 1px solid rgba(0, 184, 148, 0.4);
  color: rgba(0, 184, 148, 1);
}

.success-alert i {
  font-size: 1.4rem;
}

.error-alert {
  background: rgba(255, 100, 100, 0.2);
  border: 1px solid rgba(255, 100, 100, 0.4);
  color: rgba(255, 100, 100, 1);
}

.error-alert i {
  font-size: 1.4rem;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.category-folder {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  overflow: hidden;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.category-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.category-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-icon {
  font-size: 1.8rem;
  color: #9D7CFF;
}

.category-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-count {
  padding: 0.4rem 0.8rem;
  background: rgba(157, 124, 255, 0.2);
  border: 1px solid rgba(157, 124, 255, 0.3);
  border-radius: 8px;
  color: #9D7CFF;
  font-size: 0.85rem;
  font-weight: 700;
}

.category-toggle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease;
}

.category-projects {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.project-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  cursor: move;
  transition: all 0.3s ease;
}

.project-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(157, 124, 255, 0.3);
}

.project-row.drag-over {
  background: rgba(157, 124, 255, 0.15);
  border-color: rgba(157, 124, 255, 0.5);
  transform: scale(1.02);
}

.project-drag-handle {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.5rem;
  cursor: grab;
}

.project-drag-handle:active {
  cursor: grabbing;
}

.project-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info-row {
  flex: 1;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-id,
.project-order {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.project-order {
  color: #9D7CFF;
}

.btn-delete-row {
  width: 45px;
  height: 45px;
  background: rgba(255, 100, 100, 0.2);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 100, 100, 1);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-delete-row:hover {
  background: rgba(255, 100, 100, 0.35);
  transform: scale(1.05);
}

.empty-category {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-category i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.empty-category p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-weight: 600;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  overflow-y: auto;
}

.modal-content {
  background: rgba(37, 31, 59, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(157, 124, 255, 0.3);
  border-radius: 18px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalSlide 0.3s ease-out;
}

.modal-large {
  max-width: 600px;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-close {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.7)' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 3rem;
}

.form-select option {
  background: #251F3B;
  color: rgba(255, 255, 255, 0.95);
  padding: 1rem;
  font-weight: 600;
}

.form-textarea {
  resize: vertical;
  font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: rgba(157, 124, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.form-select:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.upload-zone {
  position: relative;
}

.upload-input {
  display: none;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-label:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(157, 124, 255, 0.4);
}

.upload-label i {
  font-size: 2rem;
}

.upload-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(0, 184, 148, 1);
}

.preview-image {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.preview-image img {
  width: 100%;
  height: auto;
  display: block;
}

.preview-images-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.preview-image-item {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  flex: 1;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
  flex: 1;
  padding: 1rem;
  background: rgba(157, 124, 255, 0.25);
  border: 1px solid rgba(157, 124, 255, 0.4);
  border-radius: 12px;
  color: #9D7CFF;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: rgba(157, 124, 255, 0.35);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slug-preview {
  padding: 0.8rem 1rem;
  background: rgba(157, 124, 255, 0.15);
  border: 1px solid rgba(157, 124, 255, 0.3);
  border-radius: 10px;
  color: rgba(157, 124, 255, 1);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: monospace;
  margin-bottom: 0.8rem;
  text-align: center;
}

.filters-bar {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 1.2rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
  outline: none;
  border-color: rgba(157, 124, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.filter-group {
  display: flex;
  gap: 0.8rem;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn i {
  font-size: 1.1rem;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.95);
}

.filter-btn.active {
  background: rgba(157, 124, 255, 0.25);
  border-color: rgba(157, 124, 255, 0.4);
  color: #9D7CFF;
}

.members-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  overflow: hidden;
}

.table-responsive {
  overflow-x: auto;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
}

.members-table thead {
  background: rgba(255, 255, 255, 0.08);
}

.members-table th {
  padding: 1.2rem 1.8rem;
  text-align: left;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.th-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.85);
}

.th-content i {
  font-size: 1rem;
  color: rgba(157, 124, 255, 0.8);
}

.members-table td {
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.member-row {
  transition: background 0.2s ease;
}

.member-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.member-avatar {
  width: 42px;
  height: 42px;
  background: rgba(157, 124, 255, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #9D7CFF;
  flex-shrink: 0;
}

.member-name {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
}

.member-email {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 500;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-badge i {
  font-size: 1rem;
}

.role-badge.admin {
  background: rgba(157, 124, 255, 0.25);
  border: 1px solid rgba(157, 124, 255, 0.4);
  color: #9D7CFF;
}

.role-badge.user {
  background: rgba(100, 200, 255, 0.25);
  border: 1px solid rgba(100, 200, 255, 0.4);
  color: #64C8FF;
}

.date-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .admin-content {
    margin-left: 0;
    padding: 1.5rem;
  }

  .filters-bar {
    flex-direction: column;
  }

  .search-box {
    min-width: 100%;
  }

  .filter-group {
    justify-content: space-between;
  }

  .filter-btn {
    flex: 1;
    justify-content: center;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 767.98px) {
  .admin-content {
    padding: 1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    padding: 1.5rem;
  }

  .category-header {
    padding: 1rem 1.5rem;
  }

  .category-name {
    font-size: 1.1rem;
  }

  .project-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .project-thumbnail {
    width: 60px;
    height: 60px;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .members-table th,
  .members-table td {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .member-avatar {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.8rem 0.8rem;
  }

  .th-content {
    font-size: 0.8rem;
  }
}

.categories-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.category-section {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.category-section:hover {
  border-color: rgba(157, 124, 255, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: visible;
  transition: all 0.2s ease;
  position: relative;
}

.project-card:hover {
  border-color: rgba(157, 124, 255, 0.4);
}

.project-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.1);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0.75rem;
  gap: 0.5rem;
  border-radius: 12px;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.btn-delete-card {
  background: rgba(255, 100, 100, 0.9);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-delete-card:hover {
  background: rgba(255, 100, 100, 1);
  transform: scale(1.1);
}

.project-card-info {
  padding: 0.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 12px 12px;
}

@media (max-width: 767.98px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.5), rgba(139, 92, 246, 0));
}

.stat-card.primary::before {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.8), rgba(139, 92, 246, 0));
}

.stat-card.secondary::before {
  background: linear-gradient(90deg, rgba(100, 200, 255, 0.8), rgba(100, 200, 255, 0));
}

.stat-card.tertiary::before {
  background: linear-gradient(90deg, rgba(0, 184, 148, 0.8), rgba(0, 184, 148, 0));
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #8B5CF6;
  flex-shrink: 0;
}

.stat-card.secondary .stat-icon {
  background: rgba(100, 200, 255, 0.25);
  color: #64C8FF;
}

.stat-card.tertiary .stat-icon {
  background: rgba(0, 184, 148, 0.25);
  color: #00B894;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.8rem 0;
  line-height: 1;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.stat-trend.positive {
  color: rgba(0, 184, 148, 0.9);
}

.stat-trend i {
  font-size: 1rem;
}

.quick-actions {
  margin-top: 3rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.5rem 0;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.action-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.action-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.action-card:hover::before {
  opacity: 1;
}

.action-icon {
  width: 60px;
  height: 60px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #8B5CF6;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.action-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.action-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.4rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.action-arrow {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.action-card:hover .action-arrow {
  color: rgba(139, 92, 246, 0.9);
}
