/* Modern Polytechnic Management System Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --tblr-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-info: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --gradient-danger: linear-gradient(135deg, #ff8a80 0%, #ea6100 100%);
  --gradient-purple: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
  --gradient-cyan: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
  --gradient-orange: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
  --gradient-pink: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
  --gradient-teal: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --gradient-lime: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --gradient-indigo: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  --gradient-dark: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.15);
  --border-radius: 16px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: var(--tblr-body-font-family);
  min-height: 100vh;
}

/* Navbar Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-brand svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Page Header */
.page-header {
  background: transparent;
  margin-bottom: 2rem;
}

.page-title {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 0;
}

.page-pretitle {
  color: #6c757d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* Card Styles */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Module Cards */
.module-card {
  border: none;
  border-radius: var(--border-radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 100%;
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.module-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.module-card:hover::before {
  opacity: 1;
}

.module-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid #e9ecef;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.module-card .avatar svg {
  width: 28px;
  height: 28px;
  z-index: 1;
  color: #667eea;
}

/* Module Card Gradients */
.module-card:nth-child(1) .avatar { background: white; }
.module-card:nth-child(2) .avatar { background: white; }
.module-card:nth-child(3) .avatar { background: white; }
.module-card:nth-child(4) .avatar { background: white; }
.module-card:nth-child(5) .avatar { background: white; }
.module-card:nth-child(6) .avatar { background: white; }
.module-card:nth-child(7) .avatar { background: white; }
.module-card:nth-child(8) .avatar { background: white; }
.module-card:nth-child(9) .avatar { background: white; }
.module-card:nth-child(10) .avatar { background: white; }
.module-card:nth-child(11) .avatar { background: white; }
.module-card:nth-child(12) .avatar { background: white; }
.module-card:nth-child(13) .avatar { background: white; }
.module-card:nth-child(14) .avatar { background: white; }

.module-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.module-description {
  color: #718096;
  font-size: 0.875rem;
  font-weight: 400;
  margin-bottom: 0;
}

/* Stats Cards */
.stats-card {
  border: none;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0.8;
}

.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Welcome Section */
.welcome-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  padding: 2rem;
  text-align: center;
}

.welcome-title {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.welcome-subtitle {
  color: #718096;
  font-size: 1.1rem;
  font-weight: 400;
}

/* Table Styles */
.table {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.table th {
  border-top: none;
  border-bottom: 2px solid #e9ecef;
  font-weight: 600;
  color: #495057;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem 0.75rem;
}

.table td {
  border-top: 1px solid #f8f9fa;
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: rgba(108, 117, 125, 0.05);
}

/* Button Styles */
.btn {
  border-radius: 12px;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
}

.btn-primary:hover {
  background: var(--gradient-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-secondary {
  border: 2px solid #e9ecef;
  background: rgba(255, 255, 255, 0.9);
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
  transform: translateY(-2px);
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
}

.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

/* Form Styles */
.form-control,
.form-select {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
}

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

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

/* Badge Styles */
.badge {
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.75rem;
}

.badge.bg-success {
  background: var(--gradient-info) !important;
}

.badge.bg-warning {
  background: var(--gradient-warning) !important;
}

.badge.bg-danger {
  background: var(--gradient-danger) !important;
}

.badge.bg-primary {
  background: var(--gradient-primary) !important;
}

/* Avatar Styles */
.avatar {
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Background Shapes */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
}

.shape:nth-child(1) {
  width: 80px;
  height: 80px;
  background: #667eea;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 120px;
  height: 120px;
  background: #764ba2;
  top: 20%;
  right: 15%;
  animation-delay: 2s;
}

.shape:nth-child(3) {
  width: 60px;
  height: 60px;
  background: #f093fb;
  bottom: 25%;
  left: 20%;
  animation-delay: 4s;
}

.shape:nth-child(4) {
  width: 100px;
  height: 100px;
  background: #4facfe;
  bottom: 10%;
  right: 25%;
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) scale(1); 
  }
  25% { 
    transform: translateY(-20px) rotate(90deg) scale(1.05); 
  }
  50% { 
    transform: translateY(-30px) rotate(180deg) scale(1); 
  }
  75% { 
    transform: translateY(-15px) rotate(270deg) scale(0.95); 
  }
}

/* Link Styles */
a {
  text-decoration: none;
  transition: var(--transition);
}

.module-card a {
  color: inherit;
}

.module-card a:hover {
  color: inherit;
}

/* Tab Styles */
.nav-tabs .nav-link {
  border: none;
  border-radius: 12px;
  margin-right: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  color: #6c757d;
  transition: var(--transition);
}

.nav-tabs .nav-link.active {
  background: var(--gradient-primary);
  color: white;
}

.nav-tabs .nav-link:hover:not(.active) {
  background: rgba(108, 117, 125, 0.1);
  color: #495057;
}

/* Progress Bar */
.progress {
  height: 8px;
  border-radius: 4px;
  background: rgba(108, 117, 125, 0.1);
}

.progress-bar {
  border-radius: 4px;
}

.progress-bar.bg-primary {
  background: var(--gradient-primary) !important;
}

.progress-bar.bg-success {
  background: var(--gradient-info) !important;
}

.progress-bar.bg-warning {
  background: var(--gradient-warning) !important;
}

/* Dropdown Menu */
.dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 400;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: rgba(108, 117, 125, 0.1);
  color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .module-card {
    margin-bottom: 1rem;
  }
  
  .welcome-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .welcome-title {
    font-size: 1.5rem;
  }
}