/* Global Styles */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  line-height: 1.6;
}

/* Utility Classes */
.gradient-bg {
  background: var(--primary-gradient);
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-custom {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shadow-custom-lg {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Button Variants */
.btn-gradient {
  background: var(--primary-gradient);
  border: none;
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-outline-gradient {
  background: transparent;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), var(--primary-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #667eea;
  padding: 8px 23px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-gradient:hover {
  background-image: linear-gradient(white, white), var(--primary-gradient);
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

/* Form Enhancements */
.form-control {
  border-radius: 10px;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
}

/* Table Enhancements */
.table-responsive {
  border-radius: 10px;
  overflow: hidden;
}

.table th {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 15px;
  font-weight: 600;
}

.table td {
  padding: 12px 15px;
  vertical-align: middle;
  border-color: #e9ecef;
}

/* Badge Styles */
.badge-gradient {
  background: var(--primary-gradient);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-weight: 500;
}

/* Alert Styles */
.alert {
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  border-left: 4px solid;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-left-color: #28a745;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
  color: #721c24;
  border-left-color: #dc3545;
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border-left-color: #17a2b8;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border-left-color: #ffc107;
}

/* Progress Bars */
.progress {
  height: 8px;
  border-radius: 10px;
  background: #e9ecef;
  overflow: hidden;
}

.progress-bar {
  background: var(--primary-gradient);
  border-radius: 10px;
}

/* Modal Enhancements */
.modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: var(--primary-gradient);
  color: white;
  border-radius: 15px 15px 0 0;
  border: none;
}

.modal-header .btn-close {
  filter: invert(1);
}

/* Pagination */
.pagination .page-link {
  border: none;
  color: #667eea;
  margin: 0 2px;
  border-radius: 8px;
}

.pagination .page-item.active .page-link {
  background: var(--primary-gradient);
  border: none;
}

.pagination .page-link:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

/* Custom File Upload */
.file-upload {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.file-upload input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  background: var(--primary-gradient);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.file-upload-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Loading States */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.loading-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .btn-gradient,
  .btn-outline-gradient {
    padding: 8px 20px;
    font-size: 14px;
  }

  .card-body {
    padding: 15px;
  }

  .table-responsive {
    font-size: 14px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .bg-light {
    background-color: #abacb0 !important;
    color: #e2e8f0;
  }

  .card {
    background-color: #7f8082;
    color: #e2e8f0;
    border: 1px solid #4a5568;
  }

  .form-control {
    background-color: #9a9a9a;
    border-color: #4a5568;
    color: #e2e8f0;
  }

  .form-control:focus {
    background-color: #2d3748;
    color: #e2e8f0;
  }
}

/* Animation Keyframes */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

.bounce {
  animation: bounce 1s ease infinite;
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}
