@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom right, #f9fafb, #d1d5db);
  min-height: 100vh;
  margin: 0;
}

.material-icons-round {
  vertical-align: middle;
  
}


/* Styles for question slides */
.question-slide {
    transition: transform 0.5s ease-in-out;
}

/* Answer feedback styles */
.text-green-600 {
    color: #16a34a !important;
}
.text-red-600 {
    color: #dc2626 !important;
}

/* Navbar Styling */
.navbar {
  background: linear-gradient(to right, #1e3a8a, #4f46e5, #7c3aed);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
  z-index: 9999;
}

.navbar.student-navbar {
  background: linear-gradient(to right, #0d9488, #06b6d4, #3b82f6);
}

.navbar-brand {
  font-weight: 900;
  color: white !important;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
  color: #e0e7ff !important;
}

.nav-link {
  color: white !important;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
/* Make navbar toggler icon white */
        .navbar-toggler-icon {
            filter: brightness(0) invert(1); /* Transform default icon to white */
        }
		
		.navbar-toggler {
            border: var(--bs-border-width) solid rgb(255 255 255 / 15%);
        }
.dropdown-menu {
  background: #1f2937;
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  margin-top: 0.5rem;
  z-index:10px!important;
}

.dropdown-item {
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  
}

.dropdown-item:hover {
  background: #374151;
  color: #e0e7ff;
}

/* Card Styling */
.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow:auto;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Button Styling */
.btn-primary {
  background: linear-gradient(to right, #4f46e5, #a855f7);
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(to right, #6366f1, #c084fc);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Table Styling */
.table {
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.table th {
  background: linear-gradient(to right, #1e3a8a, #4f46e5);
  color: white;
  padding: 1.25rem;
  font-weight: 600;
}

.table td {
  padding: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.95);
}

.table tr:last-child td {
  border-bottom: none;
}

.table a {
  color: #4f46e5;
  font-weight: 500;
  transition: color 0.2s ease;
}

.table a:hover {
  color: #a855f7;
}

.table button {
  color: #ef4444;
  font-weight: 500;
  transition: color 0.2s ease;
}

.table button:hover {
  color: #dc2626;
}

/* Form Styling */
input, select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.75rem;
  background: #f9fafb;
  transition: all 0.2s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

label {
  font-weight: 500;
  color: #374151;
}

/* Footer Styling */
footer {
  background: linear-gradient(to right, #1e3a8a, #4f46e5);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

/* Icon Card Styling */
.icon-card {
  transition: all 0.3s ease;
}

.icon-card:hover {
  background: rgba(243, 244, 246, 0.8);
  transform: translateY(-4px);
}

/* Test Interface Styling */
.question-slide {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.question-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.question-slide.hidden {
  opacity: 0;
  transform: translateX(100%);
  position: absolute;
  width: 100%;
}

.w-60 {
    width: 30rem!important;
}
.material-icons-round {
  width: 60px!important;
}