/* Modern UI CSS */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --success-color: #4CAF50;
  --warning-color: #FF9800;
  --danger-color: #F44336;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Modern UI components */
.modern-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
  margin-bottom: 20px;
  transition: var(--transition);
}

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

.modern-btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  background: var(--primary-color);
  color: white;
}

.modern-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.modern-btn-primary {
  background: var(--primary-color);
}

.modern-btn-success {
  background: var(--success-color);
}

.modern-btn-warning {
  background: var(--warning-color);
}

.modern-btn-danger {
  background: var(--danger-color);
}

.modern-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: var(--transition);
}

.modern-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.modern-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius);
  font-size: 16px;
  background-color: white;
  cursor: pointer;
  transition: var(--transition);
}

.modern-select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.modern-badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 10px;
  background-color: var(--primary-color);
  color: white;
}

.modern-alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
}

.modern-alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.modern-alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeaa7;
}

.modern-alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.modern-progress {
  height: 20px;
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.modern-progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  transition: width 0.6s ease;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.modern-table th,
.modern-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.modern-table th {
  background-color: var(--light-color);
  font-weight: 600;
}

.modern-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .modern-card {
    padding: 15px;
  }
  
  .modern-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .modern-input,
  .modern-select {
    padding: 10px 12px;
  }
}

/* Animation utilities */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

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