body {
  background-color: #020007ff;
}
.main-green {
  /* background-color: #15b000; */
  /* background: linear-gradient(45deg, #ff007f, #15b000); */
  background: linear-gradient(45deg, #ff007f, #8b5cf6);
}

.main-linear {
  background: linear-gradient(45deg, #ff007f, #8b5cf6);
}

/* Header styles */
#navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent !important;
  padding: 20px 0;
}

.navbar-brand img {
  filter: brightness(1.2);
}

/* Offcanvas styles */
.offcanvas {
  max-width: 280px;
}

.offcanvas-body .nav-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.offcanvas-body .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 1.5rem;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Carousel styles */
.carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 100;
  color: white;
  width: 80%;
}

.carousel-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.carousel-subtitle {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ccc;
}

.carousel-description {
  font-size: 1.1rem;
  margin: 30px 0;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive carousel styles */
@media (max-width: 768px) {
  .carousel-title {
    font-size: 2.5rem;
  }

  .carousel-subtitle {
    font-size: 1.2rem;
  }

  .carousel-description {
    font-size: 1rem;
    margin: 20px 0;
  }

  .carousel-content {
    width: 90%;
  }
}

@media (max-width: 576px) {
  .carousel-title {
    font-size: 2rem;
  }

  .carousel-subtitle {
    font-size: 1rem;
  }
}

.btn-enroll:hover {
  animation: shake 0.5s;
  animation-iteration-count: 5s;
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

.gradient-text {
  background: linear-gradient(45deg, #ff007f, #8b5cf6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-bg-img {
  background-image: url("../images/section-bg-shape.png");
  background-position: top;
}

/* ----------------------------------------------------- */

/*
*
* ==========================================
* CUSTOM UTIL CLASSES
* ==========================================
*
*/

/* DEMO GENERAL ============================== */
.hover {
  overflow: hidden;
  position: relative;
  padding-bottom: 60%;
}

.hover-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 90;
  transition: all 0.4s;
}

.hover img {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.3s;
}

.hover-content {
  position: relative;
  z-index: 99;
}

/* DEMO 1 ============================== */
.hover-1 img {
  width: 105%;
  position: absolute;
  top: 0;
  left: -5%;
  transition: all 0.3s;
}

.hover-1 .hover-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.hover-1:hover img {
  left: 0;
}

.hover-1:hover .hover-overlay {
  opacity: 0;
}

/* DEMO 5 ============================== */
.hover-5::after {
  content: "";
  width: 100%;
  height: 10px;
  position: absolute;
  bottom: -10px;
  left: 0;
  display: block;
  transition: all 0.3s;
  z-index: 999;
}

.hover-5 .hover-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.hover-5:hover .hover-overlay {
  background: rgba(0, 0, 0, 0.8);
}

.hover-5:hover::after {
  bottom: 0;
}

/* couter */

.counter-section i {
  display: block;
  margin: 0 0 10px;
}

.counter-section span.counter {
  font-size: 30px;
  color: rgb(255, 255, 255);
  line-height: 60px;
  display: block;
  font-family: "Oswald", sans-serif;
  letter-spacing: 2px;
}

.counter-title {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.counter-icon {
  top: 25px;
  position: relative;
}

.counter-style2 .counter-title {
  letter-spacing: 0.55px;
  float: left;
}

.counter-style2 span.counter {
  letter-spacing: 0.55px;
  float: left;
  margin-right: 10px;
}

.counter-style2 i {
  float: right;
  line-height: 26px;
  margin: 0 10px 0 0;
}

.counter-subheadline span {
  float: right;
}

.medium-icon {
  font-size: 40px !important;
  margin-bottom: 15px !important;
}

/* Ensure all card images have the same height */
.card {
  overflow: hidden;
}
.card img {
  height: 250px; /* Adjust the height as needed */
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s ease;
}
.card:hover img {
  transform: scale(1.1);
}

.footer_img {
  background-image: url("../images/footer-img.JPG");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

/* Loader styles */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loader .spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top: 5px solid #1f1f1f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* --------------------------- */

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #1a1b23;
  border-right: 1px solid #2d2e36;
  z-index: 1050;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar.sidebar-open {
  transform: translateX(0);
}

/* Desktop: Always show sidebar */
@media (min-width: 992px) {
  .sidebar {
    transform: translateX(0);
    position: fixed;
  }
}

/* Sidebar Header */
.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid #2d2e36;
  background: #16171d;
}

.sidebar-brand {
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.brand-info h6 {
  font-size: 1rem;
  color: #ffffff;
}

.brand-info small {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sidebar Content */
.sidebar-content {
  padding: 0;
  flex: 1;
  overflow-y: auto;
}

/* Navigation Sections */
.nav-section {
  margin-bottom: 0.5rem;
}

.nav-section-header {
  display: flex;
  align-items: center;
  justify-content: between;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  background: #16171d;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 500;
  color: #d1d5db;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.nav-section-header:hover {
  background: #2d2e36;
  color: #ffffff;
}

.nav-section-title {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-section-arrow {
  transition: transform 0.2s ease;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Navigation Items */
.nav-section-items {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #1a1b23;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.625rem 1.25rem 0.625rem 2.5rem;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  color: #ffffff;
  background: #2d2e36;
  border-left-color: #4b5563;
}

/* .nav-link:hover {
  color: #334155;
  background: #f8fafc;
  border-left-color: #e2e8f0;
} */

.nav-link.active {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border-left-color: #60a5fa;
  font-weight: 500;
}

.nav-link-content {
  flex: 1;
}

.nav-item-arrow {
  font-size: 0.75rem;
  color: #6b7280;
  transition: transform 0.2s ease;
}

/* Submenu Styles */
.nav-submenu {
  display: none;
  background: #16171d;
  border-top: 1px solid #2d2e36;
}

.nav-submenu-items {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}

.nav-submenu-link {
  display: block;
  padding: 0.5rem 1.25rem 0.5rem 4rem;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.813rem;
  transition: all 0.2s ease;
  position: relative;
}

.nav-submenu-link:before {
  content: "";
  position: absolute;
  left: 3.25rem;
  top: 50%;
  width: 4px;
  height: 4px;
  background: #6b7280;
  border-radius: 50%;
  transform: translateY(-50%);
}

.nav-submenu-link:hover {
  color: #ffffff;
  background: rgba(96, 165, 250, 0.15);
}

.nav-submenu-link.active {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.2);
  font-weight: 500;
}

.nav-submenu-link.active:before {
  background: #60a5fa;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid #2d2e36;
  background: #16171d;
  margin-top: auto;
}

.user-profile {
  display: flex;
  align-items: center;
}

.user-avatar {
  position: relative;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
}

.user-info h6 {
  font-size: 0.875rem;
  color: #ffffff;
  margin-bottom: 0.125rem;
}

.user-info small {
  font-size: 0.75rem;
  color: #9ca3af;
}

.user-menu .btn {
  color: #9ca3af;
  border: none;
  padding: 0.25rem;
  background: transparent;
}

.user-menu .btn:hover {
  color: #ffffff;
  background: #2d2e36;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1060;
  background: #1a1b23;
  border: 1px solid #2d2e36;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.sidebar-toggle:hover {
  background: #2d2e36;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Fix sidebar toggle button position for small screens */
@media (max-width: 991.98px) {
  .sidebar-toggle {
    top: 1.25rem;
    left: 1.25rem;
    right: auto;
    margin: 0;
    /* Ensure toggle is above sidebar and content */
    z-index: 1100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  }
}

/* Prevent toggle from overlapping logo on mobile */
@media (max-width: 575.98px) {
  .sidebar-toggle {
    top: 0.75rem;
    left: 0.75rem;
    width: 40px;
    height: 40px;
  }
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Body adjustments when sidebar is open */
body.sidebar-open {
  overflow: hidden;
}

/* Desktop Styles - Additional rules */
@media (min-width: 992px) {
  .sidebar-toggle {
    display: none;
  }

  .sidebar-overlay {
    display: none;
  }

  body.sidebar-open {
    overflow: auto;
  }

  /* Show submenu on desktop by default for playground */
  .nav-submenu {
    display: block;
  }
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .sidebar {
    width: 100%;
    max-width: 320px;
  }
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #16171d;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Animation for collapsible sections */
.collapse {
  transition: height 0.3s ease;
}

/* Dropdown menu styling */
.dropdown-menu {
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #64748b;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: #f8fafc;
  color: #334155;
}

.dropdown-item.text-danger {
  color: #dc2626 !important;
}

.dropdown-item.text-danger:hover {
  background: #fef2f2;
  color: #b91c1c !important;
}

/* Main Content Area */
.main-content {
  margin-left: 0;
  min-height: 100vh;
  background: #020007ff;
  transition: margin-left 0.3s ease;
  padding: 1rem;
  width: 100%;
}

/* Desktop: Add left margin to accommodate sidebar */
@media (min-width: 992px) {
  .main-content {
    margin-left: 280px;
    padding: 2rem;
    width: calc(100% - 280px);
  }
}

/* Dashboard Styles */
.dashboard-header {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-card {
  position: relative;
  /* background: rgba(255, 255, 255, 0.95); */
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 16px;
  padding: 2px; /* Border thickness */
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4, #ff007f);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.dashboard-card > .card-body,
.dashboard-card > .card-header {
  position: relative;
  z-index: 2;
  background: transparent;
  border-radius: 14px;
  padding: 1.5rem 1.5rem;
}

.dashboard-card:hover::before {
  filter: brightness(1.15) saturate(1.2);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
}

.card-icon.bg-primary {
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
}

.card-icon.bg-success {
  background: linear-gradient(45deg, #10b981, #059669);
}

.card-icon.bg-warning {
  background: linear-gradient(45deg, #f59e0b, #d97706);
}

.card-icon.bg-info {
  background: linear-gradient(45deg, #06b6d4, #0891b2);
}

.card-title {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.project-icon {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

/* Table Styles */
.table {
  margin-bottom: 0;
}

.table th {
  background: #f8fafc;
  border-top: none;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: #475569;
  font-size: 0.875rem;
  padding: 1rem 1.25rem;
}

.table td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-top: 1px solid #f1f5f9;
  color: #64748b;
}

.table-hover tbody tr:hover {
  background: #f8fafc;
}

/* Progress Bar */
.progress {
  background: #f1f5f9;
  border-radius: 4px;
}

.progress-bar {
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
  border-radius: 4px;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

.badge.bg-success {
  background: linear-gradient(45deg, #10b981, #059669) !important;
}

/* Button Groups */
.btn-group-sm .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

/* Responsive Dashboard */
@media (max-width: 767.98px) {
  .main-content {
    padding: 1rem;
  }

  .dashboard-header {
    padding: 1rem;
  }

  .dashboard-header .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .dashboard-actions {
    width: 100%;
  }

  .dashboard-actions .btn {
    width: 100%;
  }
}

/* Layout Fix */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container-fluid {
  padding: 0;
}

/* Animation Classes */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-card {
  animation: slideInUp 0.6s ease-out;
}

.dashboard-card:nth-child(1) {
  animation-delay: 0.1s;
}
.dashboard-card:nth-child(2) {
  animation-delay: 0.2s;
}
.dashboard-card:nth-child(3) {
  animation-delay: 0.3s;
}
.dashboard-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Screen blur */
.protected-content {
  backdrop-filter: blur(10px);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* Tutorial Content Styles */
.tutorial-content {
  padding: 1rem;
}

.tutorial-header {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tutorial-content .progress {
  background: #2d2e36;
  height: 8px;
  border-radius: 6px;
}

.tutorial-content .progress-bar {
  border-radius: 6px;
}

.tutorial-content .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tutorial-content .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Active tutorial link styling */
.nav-link.active {
  color: #60a5fa !important;
  background: rgba(96, 165, 250, 0.1) !important;
  border-left-color: #60a5fa !important;
  font-weight: 500;
}

/* Loading state */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Mobile tutorial content adjustments */
@media (max-width: 767.98px) {
  .tutorial-content {
    padding: 0.5rem;
  }
  
  .tutorial-header {
    padding: 1rem;
  }
  
  .tutorial-content .card iframe {
    height: 150px;
  }
}

/* Hero Section Styles for new pages */
.hero-section {
  overflow: hidden;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(45deg, #ff007f, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Dashboard Card with gradient border for new pages */
.dashboard-card {
  background: rgba(26, 27, 35, 0.95);
  backdrop-filter: blur(10px);
}

/* Contact form styles */
.form-control {
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

.form-select {
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.form-select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

/* Accordion styles for FAQ */
.accordion-button {
  background: rgba(26, 27, 35, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: #8b5cf6 !important;
}

.accordion-button:not(.collapsed) {
  background: rgba(139, 92, 246, 0.1) !important;
  color: #8b5cf6 !important;
}

.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion-body {
  background: rgba(26, 27, 35, 0.95);
}

/* Animation for new pages */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Team member image hover effect */
.team-member-image {
  transition: transform 0.3s ease;
}

.team-member-image:hover {
  transform: scale(1.05);
}

/* Social icons hover effect */
.btn-outline-light:hover {
  background: linear-gradient(45deg, #ff007f, #8b5cf6);
  border-color: transparent;
}

/* Course card hover effects */
.dashboard-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
