/**
 * Modern 3D Professional Styling
 * Primary Color: #028750
 */

:root {
  --primary-green: #028750;
  --primary-green-dark: #026b3f;
  --primary-green-light: #03a366;
  --accent-yellow: #f4b400;
  --accent-yellow-dark: #d99e00;
  --secondary-bg: #f5f7f6;
  --card-bg: #ffffff;
  --text-primary: #1f2a2e;
  --text-secondary: #6c757d;
  --shadow-sm: 0 2px 8px rgba(2, 135, 80, 0.08);
  --shadow-md: 0 4px 16px rgba(2, 135, 80, 0.12);
  --shadow-lg: 0 8px 32px rgba(2, 135, 80, 0.16);
  --shadow-3d: 0 10px 40px rgba(2, 135, 80, 0.2);
  --gradient-primary: linear-gradient(135deg, #028750 0%, #03a366 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f5f7f6 100%);
}

.card-3d {
  background: var(--card-bg);
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card-3d:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-3d);
}

.card-3d:hover::before {
  transform: scaleX(1);
}

.stat-card-3d {
  background: var(--gradient-card);
  border: none;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card-3d::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(2, 135, 80, 0.05) 0%,
    transparent 70%
  );
  transition: all 0.5s ease;
  opacity: 0;
}

.stat-card-3d:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-card-3d:hover::after {
  opacity: 1;
  top: -25%;
  right: -25%;
}

.stat-card-3d .stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: #f0f2f5;
  color: #667eea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-card-3d:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 12px 0 4px;
  font-family: "Poppins", sans-serif;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-3d-primary {
  background: var(--primary-green);
  border: none;
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(2, 135, 80, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-3d-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-3d-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 135, 80, 0.4);
  background-color: #006400 !important;
  color: white !important;
}

.btn-3d-primary:active {
  transform: translateY(0);
  background-color: #014c2d !important;
  box-shadow: 0 2px 8px rgba(2, 135, 80, 0.5);
}

.btn-3d-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-3d-secondary {
  background: rgb(63, 95, 65);
  border: 2px solid #6c757d;
  color: #6c757d;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-3d-secondary:hover {
  background: #006400;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 100, 0, 0.3);
}

.table-3d {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-3d thead {
  background: #f8f9fa;
  color: #444;
}

.table-3d thead th {
  border: none;
  padding: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  color: #444 !important;
  border-bottom: 2px solid #e9ecef;
}

.table-3d tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.table-3d tbody tr:hover {
  background: rgba(2, 135, 80, 0.05);
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(2, 135, 80, 0.1);
}

.table-3d tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  color: #333;
}

.badge-3d {
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.badge-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.badge-3d-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.badge-3d-warning {
  background: linear-gradient(135deg, #f4b400 0%, #d99e00 100%);
  color: white;
}

.badge-3d-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.badge-3d-primary {
  background: var(--gradient-primary);
  color: white;
}

.pagetitle-3d {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--gradient-card);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--primary-green);
}

.pagetitle-3d h1 {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.modal-3d .modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: var(--shadow-3d);
  overflow: hidden;
}

.modal-3d .modal-header {
  background: var(--secondary-bg);
  color: var(--text-primary);
  border: none;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
}

.modal-3d .modal-header .btn-close {
  opacity: 0.5;
}

.modal-3d .modal-title {
  font-weight: 700;
  color: var(--text-primary);
}

.modal-3d .modal-body {
  padding: 24px;
}

.chart-container-3d {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.chart-container-3d:hover {
  box-shadow: var(--shadow-lg);
}

.progress-3d {
  height: 12px;
  border-radius: 10px;
  background: #e9ecef;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.progress-3d .progress-bar {
  background: var(--primary-green);
  box-shadow: 0 2px 6px rgba(2, 135, 80, 0.3);
  transition: width 0.6s ease;
}

.form-control-3d {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.form-control-3d:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(2, 135, 80, 0.1);
  outline: none;
}

.alert-3d {
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid;
}

.alert-3d-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-left-color: #10b981;
  color: #065f46;
}

.alert-3d-danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-left-color: #ef4444;
  color: #991b1b;
}

.icon-3d {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #f0f2f5;
  color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.icon-3d:hover {
  transform: scale(1.1) rotate(5deg);
}

.breadcrumb-3d {
  background: transparent;
  padding: 0;
  margin: 8px 0 0;
}

.breadcrumb-3d .breadcrumb-item {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.breadcrumb-3d .breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.breadcrumb-3d .breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-3d .breadcrumb-item a:hover {
  color: var(--primary-green);
}

.star-rating-3d i {
  color: #fbbf24;
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
  transition: all 0.3s ease;
}

.star-rating-3d i:hover {
  transform: scale(1.2);
}

.dept-card-3d {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border-top: 4px solid #e9ecef;
}

.dept-card-3d:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.emp-card-3d {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border-top: 4px solid #e9ecef;
}

.emp-card-3d:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green-dark);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

@media (max-width: 768px) {
  .stat-value {
    font-size: 2rem;
  }

  .card-3d {
    border-radius: 12px;
  }

  .pagetitle-3d h1 {
    font-size: 1.5rem;
  }
}
