/* Login Page Styles */

/* Canvas Background */
#backgroundCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Logo Section */
.logo-section {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.main-logo {
  width: auto;
  height: 80px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Clouds */
.cloud {
  position: absolute;
  width: 150px;
  height: 45px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  animation: float 15s infinite ease-in-out;
}

.cloud:before {
  content: '';
  position: absolute;
  top: -20px;
  left: 25px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cloud:after {
  content: '';
  position: absolute;
  top: -35px;
  left: 65px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(20px);
  }
}

.container {
  max-width: 420px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.card-transparent {
  background-color: rgba(var(--COLOR-BG-RGB), 0.85);
  border: 1px solid #886f22, 0.2);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 0 15px rgba(var(--COLOR-PRIMARY-RGB), 0.15);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.card-transparent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--COLOR-PRIMARY) 0%, var(--COLOR-PRIMARY-LIGHT) 100%);
  animation: moving-lightning 1s alternate infinite ease-in-out;
  box-shadow: 0px 0px 15px rgba(0, 255, 0, 1);
}

.card-transparent:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 20px rgba(var(--COLOR-PRIMARY-RGB), 0.2);
}

.form-control {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(var(--COLOR-PRIMARY-RGB), 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  color: #ffffff;
  font-size: 15px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  position: relative;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--COLOR-PRIMARY);
  box-shadow: 0 0 0 3px rgba(var(--COLOR-PRIMARY-RGB), 0.25);
  color: #ffffff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Add a subtle primary color glow effect on hover */
.form-control:hover {
  border-color: var(--COLOR-PRIMARY-LIGHT);
  box-shadow: 0 0 8px rgba(var(--COLOR-PRIMARY-RGB), 0.15);
}

/* Custom select styling */
select.form-control {
  background-image: linear-gradient(45deg, transparent 50%, var(--COLOR-PRIMARY) 50%),
                    linear-gradient(135deg, var(--COLOR-PRIMARY) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px),
                      calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px,
                  5px 5px;
  background-repeat: no-repeat;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 30px;
}

select.form-control:focus {
  background-image: linear-gradient(45deg, var(--COLOR-PRIMARY-LIGHT) 50%, transparent 50%),
                    linear-gradient(135deg, transparent 50%, var(--COLOR-PRIMARY-LIGHT) 50%);
  background-position: calc(100% - 15px) calc(1em + 2px),
                      calc(100% - 20px) calc(1em + 2px);
  background-size: 5px 5px,
                  5px 5px;
  background-repeat: no-repeat;
}

.btn-primary {
  background: linear-gradient(135deg, var(--COLOR-PRIMARY) 0%, var(--COLOR-PRIMARY-LIGHT) 100%);
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--COLOR-PRIMARY-LIGHT) 0%, var(--COLOR-PRIMARY) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--COLOR-PRIMARY-RGB), 0.4);
}

.form-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.form-check-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(var(--COLOR-PRIMARY-RGB), 0.3);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: var(--COLOR-PRIMARY);
  border-color: var(--COLOR-PRIMARY-LIGHT);
  box-shadow: 0 0 5px rgba(var(--COLOR-PRIMARY-RGB), 0.3);
}

.form-check-input:hover {
  border-color: var(--COLOR-PRIMARY);
  box-shadow: 0 0 5px rgba(var(--COLOR-PRIMARY-RGB), 0.15);
}

.new-checkbox .new-control-indicator {
  border-color: rgba(var(--COLOR-PRIMARY-RGB), 0.3);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.new-checkbox:hover .new-control-indicator {
  border-color: var(--COLOR-PRIMARY);
  box-shadow: 0 0 5px rgba(var(--COLOR-PRIMARY-RGB), 0.2);
}

.forgot-link {
  color: var(--COLOR-PRIMARY-LIGHT);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.forgot-link:hover {
  color: var(--COLOR-SECONDARY);
  text-decoration: none;
  opacity: 0.9;
}

.form {
  background: linear-gradient(135deg, rgba(var(--COLOR-BG-RGB), 0.7) 0%, rgba(var(--COLOR-BG-RGB), 0.9) 100%);
}

.form-container {
  display: flex;
  min-height: 100vh;
}

.form-form {
  flex: 1;
  padding: 2rem;
}

.form-content {
  max-width: 480px;
  margin: 0 auto;
  padding: 2.5rem;
  background: rgba(var(--COLOR-PRIMARY-RGB), 0.08);
  border-radius: 1.5rem;
  backdrop-filter: blur(15px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-content h5 {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  color: white;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.form-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.field-wrapper input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(var(--COLOR-PRIMARY-RGB), 0.2);
  color: white !important;
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  transition: all 0.3s ease;
}

.field-wrapper input:focus {
  border-color: var(--COLOR-PRIMARY) !important;
  box-shadow: 0 0 0 3px rgba(var(--COLOR-PRIMARY-RGB), 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.field-wrapper input:hover {
  border-color: var(--COLOR-PRIMARY-LIGHT);
  box-shadow: 0 0 8px rgba(var(--COLOR-PRIMARY-RGB), 0.15);
}

/* Add a subtle primary color highlight for input icons */
.field-wrapper svg {
  color: var(--COLOR-PRIMARY-LIGHT) !important;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.field-wrapper:hover svg,
.field-wrapper input:focus + svg {
  opacity: 1;
  filter: drop-shadow(0 0 3px rgba(var(--COLOR-PRIMARY-RGB), 0.3));
}

.field-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-success {
  background: linear-gradient(90deg, var(--COLOR-PRIMARY) 0%, var(--COLOR-PRIMARY-LIGHT) 100%);
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--COLOR-PRIMARY-RGB), 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--COLOR-PRIMARY-RGB), 0.4);
}

.stats-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  color: white;
}

.stat-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.forgot-pass-link {
  color: var(--COLOR-PRIMARY-LIGHT) !important;
  transition: all 0.2s ease;
}

.forgot-pass-link:hover {
  opacity: 0.9;
  text-decoration: none;
}

.terms-conditions {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .container {
    padding: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .main-logo {
    height: 60px;
  }
  
  .form-title {
    font-size: 24px;
  }

  .header-container {
    max-width: 100%;
  }

  .header-container .navbar {
    display: flex;
    justify-content: space-between;
  }

  .card-transparent {
    padding: 2rem 1rem;
  }
}

@media (min-width: 992px) {
  .header-container .navbar {
    display: flex;
    justify-content: flex-end;
  }
}

/* Dashboard Styles */
body {
  font-family: 'Inter', sans-serif;
  color: #e2e8f0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Main Container Background */
.main-container {
  background: transparent;
  min-height: 100vh;
}

/* Dashboard Cards */
.widget {
  background-color: rgba(30, 42, 58, 0.8);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 24px;
  border: 1px solid rgba(67, 190, 206, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.widget-heading {
  padding: 22px 26px;
  border-bottom: 1px solid rgba(67, 190, 206, 0.1);
}

.widget-heading h5 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.widget-content {
  padding: 22px 26px;
}

/* Stats Cards */
.stat-card {
  background: linear-gradient(145deg, rgba(30, 42, 58, 0.9) 0%, rgba(25, 35, 50, 0.9) 100%);
  border-radius: 16px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(67, 190, 206, 0.1);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

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

.stat-card .icon {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 48px;
  opacity: 0.2;
  color: var(--COLOR-PRIMARY);
}

.stat-card .stat-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  font-weight: 500;
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.stat-card .stat-change {
  font-size: 14px;
  font-weight: 500;
}

.stat-card .stat-change.positive {
  color: #4ade80;
}

.stat-card .stat-change.negative {
  color: #f87171;
}

/* Charts */
.chart-container {
  position: relative;
  height: 120px;
  margin-top: 16px;
}

.chart-line {
  stroke: var(--COLOR-PRIMARY);
  stroke-width: 2;
  fill: none;
}

.chart-area {
  fill: url(#gradient);
  opacity: 0.2;
}

.chart-dot {
  fill: var(--COLOR-PRIMARY);
  stroke: #1e2a3a;
  stroke-width: 2;
}

/* Activity Timeline */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: 2px;
  background: rgba(var(--COLOR-PRIMARY-RGB), 0.2);
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--COLOR-PRIMARY);
  border: 3px solid #1e2a3a;
}

.timeline-item.success:before {
  background: #4ade80;
}

.timeline-item.warning:before {
  background: #fbbf24;
}

.timeline-item.danger:before {
  background: #f87171;
}

.timeline-item.processing:before {
  background: #60a5fa;
}

.timeline-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(var(--COLOR-PRIMARY-RGB), 0.1);
}

.data-table td {
  padding: 18px;
  font-size: 14px;
  color: #fff;
  border-bottom: 1px solid rgba(var(--COLOR-PRIMARY-RGB), 0.05);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: rgba(var(--COLOR-PRIMARY-RGB), 0.05);
}

/* Product Item */
.product-item {
  display: flex;
  align-items: center;
}

.product-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(var(--COLOR-PRIMARY-RGB), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  color: var(--COLOR-PRIMARY);
}

.product-info {
  flex: 1;
}

.product-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.product-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
}

.badge-success {
  background-color: rgba(74, 222, 128, 0.1);
  color: #4ade80;
}

.badge-warning {
  background-color: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.badge-danger {
  background-color: rgba(248, 113, 113, 0.1);
  color: #f87171;
}

.badge-info {
  background-color: rgba(var(--COLOR-PRIMARY-RGB), 0.1);
  color: var(--COLOR-PRIMARY);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--COLOR-PRIMARY) 0%, var(--COLOR-PRIMARY-LIGHT) 100%);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--COLOR-PRIMARY-LIGHT) 0%, var(--COLOR-PRIMARY) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--COLOR-PRIMARY-RGB), 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(var(--COLOR-PRIMARY-RGB), 0.3);
  color: #fff;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--COLOR-PRIMARY-LIGHT);
  transform: translateY(-2px);
}

/* User Avatars */
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(var(--COLOR-PRIMARY-RGB), 0.2);
  border: 2px solid var(--COLOR-PRIMARY-LIGHT);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
}

.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  margin-left: -10px;
  border: 2px solid #1e2a3a;
  transition: transform 0.2s ease;
}

.avatar-group .avatar:hover {
  transform: translateY(-3px);
  z-index: 2;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

/* Stats Containers */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

/* Map Container */
.map-container {
  height: 300px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.map-container .map {
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.map-container .map path {
  fill: #2d3e50;
  stroke: var(--COLOR-PRIMARY-LIGHT);
  stroke-width: 0.5;
  transition: fill 0.3s ease;
}

.map-container .map path:hover {
  fill: #3a4d61;
}

.map-container .point {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--COLOR-PRIMARY-LIGHT);
  transform: translate(-50%, -50%);
}

.map-container .point:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--COLOR-PRIMARY-LIGHT);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .widget-heading {
    padding: 18px 20px;
  }
  
  .widget-content {
    padding: 18px 20px;
  }
  
  .stat-card {
    padding: 22px;
  }
  
  .stat-card .stat-value {
    font-size: 26px;
  }
}

/* Enhanced Sidebar Menu Icons */
#sidebar .menu i {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  opacity: 0.85;
  stroke-width: 1.5px;
  color: var(--COLOR-PRIMARY);
  transition: all 0.3s ease;
}

#sidebar .menu > a:hover i {
  color: var(--COLOR-PRIMARY-LIGHT);
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px rgba(var(--COLOR-PRIMARY-RGB), 0.3));
}

#sidebar .menu > a[data-active="true"] i {
  color: var(--COLOR-PRIMARY-LIGHT);
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(var(--COLOR-PRIMARY-RGB), 0.4));
}

/* Submenu Icon Styles */
#sidebar .submenu li a:before {
  background-color: var(--COLOR-PRIMARY);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#sidebar .submenu li a:hover:before {
  background-color: var(--COLOR-PRIMARY-LIGHT);
  transform: scale(1.3);
  box-shadow: 0 0 5px rgba(var(--COLOR-PRIMARY-RGB), 0.5);
}

#sidebar .submenu li.active a:before {
  background-color: var(--COLOR-PRIMARY-LIGHT);
  box-shadow: 0 0 6px rgba(var(--COLOR-PRIMARY-RGB), 0.6);
}

/* Dropdown Toggle Icon Animation */
#sidebar .dropdown-toggle .dropdown-toggle-icon {
  color: var(--COLOR-PRIMARY);
  transition: transform 0.3s ease, color 0.3s ease;
}

#sidebar .menu > a:hover .dropdown-toggle-icon,
#sidebar .menu > a[aria-expanded="true"] .dropdown-toggle-icon {
  color: var(--COLOR-PRIMARY-LIGHT);
}

#sidebar .menu > a[aria-expanded="true"] .dropdown-toggle-icon {
  transform: rotate(90deg);
}
