/* Styles extracted from templates */

/* Codex inspired light theme */
:root {
    --accent-color: #10a37f;
}

body.bg-dark-blue {
    background-color: #fff !important;
    color: #000;
}

/* Color scheme overrides */
.card.gradient-blue {
    background: linear-gradient(135deg, #fafafa, #eaeaea) !important;
    color: #000 !important;
}
.card.gradient-teal {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0) !important;
    color: #000 !important;
}
.card.gradient-coral {
    background: linear-gradient(135deg, #f5f5f5, #dddddd) !important;
    color: #000 !important;
}
.btn.btn-gradient-blue {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    border: none !important;
}
.btn.btn-gradient-teal {
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
}
.btn.btn-yellow {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    border: none !important;
    font-weight: bold !important;
}
.badge.badge-coral {
    background-color: #dc3545 !important;
    color: #fff !important;
}
.text-white {
    color: #000 !important;
}
.text-white-80 {
    color: rgba(0,0,0,0.8) !important;
}
.text-white-90 {
    color: rgba(0,0,0,0.9) !important;
}
.text-white-70 {
    color: rgba(0,0,0,0.7) !important;
}
.text-white-50 {
    color: rgba(0,0,0,0.5) !important;
}
.text-yellow {
    color: var(--accent-color) !important;
}

/* Classroom styles */
.gradient-blue {
    background: linear-gradient(135deg, #fafafa, #eaeaea) !important;
}
.card {
    box-shadow: 0px 2px 6px rgba(0,0,0,0.15);
}
.rounded-4 {
    border-radius: 1rem;
}
.text-light-muted {
    color: #6c757d !important;
}
.badge-material {
    background-color: #FFC107 !important;
    color: #000 !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
    border-radius: 0.5rem !important;
}
.badge-invite {
    background-color: #F06292 !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
    border-radius: 0.5rem !important;
}
.modal-content.gradient-blue {
    background: linear-gradient(135deg, #fafafa, #eaeaea) !important;
    color: #000 !important;
}
.modal-content.gradient-blue .form-label,
.modal-content.gradient-blue .form-text {
    color: rgba(0, 0, 0, 0.8) !important;
}
.modal-content.gradient-blue input[type="text"],
.modal-content.gradient-blue input[type="file"],
.modal-content.gradient-blue input[type="email"] {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #000 !important;
}
.modal-content.gradient-blue input::placeholder {
    color: rgba(0, 0, 0, 0.6) !important;
}
.gradient-purple {
    background: linear-gradient(135deg, #f0f0f0, #dcdcdc) !important;
}
.gradient-light-blue {
    background: linear-gradient(135deg, #f5f5f5, #e5e5e5) !important;
    color: #000 !important;
}

/* Hover style for AI Tools button */
.list-group-item .dropdown .btn.btn-outline-light:hover {
    color: var(--accent-color) !important;
}

/* Quiz History table text color */
.card.gradient-teal table,
.card.gradient-teal th,
.card.gradient-teal td {
    color: #333 !important;
}

/* Delete/remove buttons */
.list-group-item .btn-outline-danger {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}
.list-group-item .btn-outline-danger:hover,
.list-group-item .btn-outline-danger:focus,
.list-group-item .btn-outline-danger:active {
    background-color: transparent !important;
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* Quizzes badge styles */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    color: #fff !important;
}
.badge.badge-primary { background-color: var(--accent-color) !important; }
.badge.badge-secondary { background-color: #666 !important; color: #fff !important; }
.badge.badge-success {
    background-color: var(--accent-color) !important;
    color: #fff !important;
}
.badge.badge-danger { background-color: #000 !important; color:#fff !important; }
.badge.badge-warning { background-color: #777 !important; color: #fff !important; }
.badge.badge-info { background-color: #999 !important; color: #fff !important; }
.badge.badge-light { background-color: #eee !important; color: #000 !important; }
.badge.badge-dark { background-color: #222 !important; color:#fff !important; }
.badge.badge-coral {
    background-color: #dc3545 !important;
    color: #fff !important;
}

/* Study guide print styles */
@media print {
    .navbar, .card-header, .card-footer, .btn, .row.mt-4 { display: none !important; }
    .card { border: none !important; background: white !important; color: black !important; }
    .study-guide-content { color: black !important; }
    .text-primary, .text-info, .text-warning, .text-white, .text-white-80, .text-white-50, .text-yellow { color: black !important; }
    .badge { color: black !important; background-color: #eee !important; }
    .study-guide-content i[data-feather] { color: black !important; }
}

/* Index page hero styles */
.bg-gradient-blue { background: linear-gradient(135deg, #fafafa, #eaeaea); }
.bg-gradient-cyan { background: linear-gradient(135deg, #f0f0f0, #e0e0e0); }
.bg-gradient-red { background: linear-gradient(135deg, #f5f5f5, #dddddd); }
.btn-hero { font-weight: 600; border: none; }
.btn-hero-start { background-color: var(--accent-color); color: #fff; }
.btn-hero-start:hover { background-color: var(--accent-color); color: #fff; opacity: 0.9; }
.btn-hero-signin { background-color: #000; color: #fff; }
.btn-hero-signin:hover { background-color: #333; color: #fff; }

/* Utility classes for inline styles */
.icon-48 { width: 48px; height: 48px; }
.icon-64 { width: 64px; height: 64px; }
.icon-80 { width: 80px; height: 80px; }
.icon-40 { width: 40px; height: 40px; }
.icon-14 { width: 14px; height: 14px; }

.bg-dark-blue { background-color: #fff; }
.list-bg-dark { background: rgba(0,0,0,0.05); border-radius: 8px; margin-bottom: 8px; }
.list-group-flush > .list-bg-dark {
    border-radius: 8px;
}
.bg-white-10 { background-color: rgba(0,0,0,0.05); }
.bg-white-10-border { background: rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.1); }
.text-cyan { color: var(--accent-color) !important; }
.text-coral { color: var(--accent-color) !important; }
.text-light-blue { color: #ccc !important; }
.progress-thin { height: 5px; }
.progress-thin-6 { height: 6px; background-color: rgba(255,255,255,0.2); }
.progress-small-container { width: 50px; background-color: rgba(0,0,0,0.1); height: 8px; }
.progress-bar-yellow { background-color: var(--accent-color); }
.code-inline { background-color: rgba(0,0,0,0.05); padding: 2px 8px; border-radius: 4px; }
.btn-results { background-color: rgba(0,0,0,0.05); color: #000; border: 1px solid rgba(0,0,0,0.2); }
.badge-cyan { background-color: var(--accent-color); color: white; }
.badge-coral-bg { background-color: var(--accent-color); color: white; }
.row-light { border-bottom: 1px solid rgba(0,0,0,0.1); background-color: rgba(255,255,255,0.9); color: #333; }
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    color: #fff;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

/* AI Loading Animation */
.ai-loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ai-brain-icon {
    font-size: 4rem;
    color: #fff;
}

.brain-pulse {
    animation: brainPulse 2s ease-in-out infinite;
}

@keyframes brainPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.icon-medal { font-size: 1.5rem; }
.bg-white-20 { background-color: rgba(0,0,0,0.05); }
.maxw-500 { max-width: 500px; }

/* Custom button styles */
.btn-outline-white-solid {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
}

/* Hover effect for Class Assignment list items */
.assignment-list-item:hover {
    background-color: rgba(0,0,0,0.05) !important; /* Slightly darker on hover */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important; /* Subtle glow */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

/* Hover effect for Recent Activities list items */
.recent-activity-item:hover {
    background-color: rgba(0,0,0,0.05) !important; /* Slightly darker on hover */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important; /* Subtle glow */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

/* Override dark form controls for light theme */
.form-control.bg-dark {
    background-color: #fff !important;
    color: #000 !important;
}

/* --- Classroom Card Enhancements --- */
.class-card-active {
    border: 2px solid var(--accent-color) !important; /* Highlight active classes */
}
.class-card-inactive {
    border: 1px solid rgba(0,0,0,0.08) !important;
    opacity: 0.95;
}

/* Enlarged and interactive primary action button */
.btn-yellow.w-100 {
    font-size: 1rem !important;
    padding: 0.6rem 1rem !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-yellow.w-100:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Thin progress bar used inside classroom card */
.progress-thin-6.bg-light {
    height: 6px;
    background-color: rgba(0,0,0,0.1) !important;
    border-radius: 4px;
}
.progress-bar-cyan {
    background-color: var(--accent-color) !important;
}

/* Collapsed list toggle link */
.collapsed-list-toggle {
    cursor: pointer;
    color: var(--accent-color) !important;
    font-weight: 600;
}

/* ChatGPT-style success button */
.btn-success {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}
.btn-success:hover,
.btn-success:focus {
    background-color: #0d8b6d !important;
    border-color: #0d8b6d !important;
}

@keyframes button-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 163, 127, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 163, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 163, 127, 0); }
}
.btn-pulse {
  animation: button-pulse 1s infinite;
}

.nav-tabs .nav-link.active,
.nav-pills .nav-link.active {
  background-color: var(--accent-color) !important;
  color: #fff !important;
  border: none !important;
  font-weight: bold;
}

.nav-tabs .nav-link,
.nav-pills .nav-link {
  color: var(--accent-color);
  font-weight: 500;
  background: none;
}

.nav-tabs .nav-link:hover,
.nav-pills .nav-link:hover {
  color: #0d8b6d;
  background-color: #e6f7f2;
}

.sidebar-modern {
  background: linear-gradient(135deg, #fafafa, #eaeaea);
  box-shadow: 2px 0 8px rgba(0,0,0,0.06);
  min-width: 70px;
  max-width: 180px;
  border-radius: 1rem;
  height: 90vh;
  margin: 1rem 0.5rem 1rem 1rem;
  align-items: center;
}
.sidebar-logo {
  margin-bottom: 2rem;
}
.sidebar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  color: #333;
  border: none;
  background: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border-radius: 0.75rem;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
}
.sidebar-btn.active, .sidebar-btn:hover {
  background: #10a37f22;
  color: #10a37f !important;
  box-shadow: 0 2px 8px #10a37f22;
}
.sidebar-label {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}
@media (max-width: 768px) {
  .sidebar-label { display: none; }
  .sidebar-modern { min-width: 56px; }
}

/* Navbar action icon-only buttons */
.navbar-action-btns .btn-icon-only {
  background: none;
  border: none;
  color: #333;
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  margin-right: 0.25rem;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.navbar-action-btns .btn-icon-only:last-child {
  margin-right: 0;
}
.navbar-action-btns .btn-icon-only.active,
.navbar-action-btns .btn-icon-only:hover,
.navbar-action-btns .btn-icon-only:focus {
  background: #10a37f22;
  color: var(--accent-color) !important;
  box-shadow: 0 2px 8px #10a37f22;
}

/* Make icons a bit larger for navbar */
.navbar-action-btns .btn-icon-only i[data-feather] {
  width: 26px;
  height: 26px;
}

.classroom-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
}

.classroom-badges .badge {
  margin-bottom: 0;
  white-space: nowrap;
}

