/* assets/css/styles.css - Enhanced Professional Styling */

/* Global Styles */
body { 
  background: #f8fafc; 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Layout Components */
.min-vh-100 { min-height: 100vh; }
.table-actions { white-space: nowrap; }

/* Dashboard Cards */
.dashboard-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.dashboard-card:hover .icon-circle {
  transform: scale(1.1);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-gradient-success {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%) !important;
}

.bg-gradient-info {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%) !important;
}

/* Sidebar Navigation */
.sidebar {
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar .nav-link {
  border-radius: 10px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  padding: 12px 16px;
  color: #64748b;
}

.sidebar .nav-link:hover {
  background: #f1f5f9;
  color: #334155;
  transform: translateX(5px);
}

.sidebar .nav-link.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sidebar .nav-link i {
  font-size: 1.1rem;
  width: 20px;
}

/* Activity Timeline */
.activity-timeline .activity-item {
  position: relative;
  padding-left: 20px;
}

.activity-timeline .activity-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  bottom: -20px;
  width: 2px;
  background: #e2e8f0;
}

.activity-timeline .activity-item:last-child::before {
  display: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Header Enhancements */
.navbar {
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Enhancements */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
  border-radius: 16px 16px 0 0 !important;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

/* Button Enhancements */
.btn {
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
}

/* Form Controls */
.form-control {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 1050;
    transition: left 0.3s ease;
  }
  
  .sidebar.show {
    left: 0;
  }
  
  .main-content {
    margin-left: 0 !important;
  }
  
  .dashboard-card {
    margin-bottom: 1rem;
  }
  
  .display-6 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand span {
    display: none;
  }
  
  .activity-timeline .activity-item {
    padding-left: 10px;
  }
  
  .activity-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-soft {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.border-soft {
  border: 1px solid #e2e8f0;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
  animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
