/* Tutors Made Easy — Brand Identity & Theme Stylesheet */
/* Colors extracted directly from the new logo.png:
   - Royal Purple / Violet (#3B115D / #4C1D95) from "Tutors", Monogram "T", and Graduation Cap
   - Warm Golden Amber (#E5A736) from "Made", Gold Star Sparkles, and Plane Wing
   - Coral Sunset Red (#FF4A46) from "Easy" and Red Plane Wing
   - Vibrant Magenta/Fuchsia (#C026D3) from the soaring book swoosh
*/

:root {
  /* Logo Core Palette */
  --tb-primary: #4C1D95;
  --tb-primary-hover: #371374;
  --tb-primary-light: #F5F3FF;
  --tb-primary-dark: #2E1065;

  --tb-violet-deep: #3B115D;
  --tb-violet-light: #EDE9FE;

  --tb-gold: #E5A736;
  --tb-gold-hover: #D19024;
  --tb-gold-light: #FFFBEB;

  --tb-coral: #FF4A46;
  --tb-coral-hover: #E83632;
  --tb-coral-light: #FFF1F2;

  --tb-magenta: #C026D3;

  /* UI Functional Palette */
  --tb-secondary: #E5A736;
  --tb-secondary-hover: #D19024;
  --tb-bg: #FAF9FC;
  --tb-card-bg: #FFFFFF;
  --tb-text-dark: #1E1233;
  --tb-text-muted: #645B75;
  --tb-border: #E8E5F0;
  --tb-success: #10B981;
  --tb-success-light: #ECFDF5;
  --tb-warning: #E5A736;
  --tb-warning-light: #FFFBEB;
  --tb-danger: #FF4A46;
  --tb-danger-light: #FFF1F2;
  --tb-radius: 12px;
  --tb-shadow-sm: 0 1px 3px rgba(46, 16, 101, 0.05);
  --tb-shadow: 0 4px 14px rgba(76, 29, 149, 0.08);
  --tb-shadow-lg: 0 10px 25px -3px rgba(76, 29, 149, 0.12), 0 4px 6px -4px rgba(46, 16, 101, 0.05);
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--tb-bg);
  color: var(--tb-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--tb-text-dark);
  letter-spacing: -0.02em;
}

a {
  color: var(--tb-primary);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
a:hover {
  color: var(--tb-primary-hover);
}

/* Bootstrap Color Overrides */
.text-primary {
  color: var(--tb-primary) !important;
}
.bg-primary {
  background-color: var(--tb-primary) !important;
}
.border-primary {
  border-color: var(--tb-primary) !important;
}
.text-secondary {
  color: var(--tb-text-muted) !important;
}
.text-success {
  color: var(--tb-success) !important;
}
.bg-success {
  background-color: var(--tb-success) !important;
}
.text-warning {
  color: var(--tb-gold) !important;
}
.bg-warning {
  background-color: var(--tb-gold) !important;
}
.text-danger {
  color: var(--tb-coral) !important;
}
.bg-danger {
  background-color: var(--tb-coral) !important;
}

/* Brand Custom Utility Classes */
.text-coral {
  color: var(--tb-coral) !important;
}
.bg-coral {
  background-color: var(--tb-coral) !important;
}
.text-gold {
  color: var(--tb-gold) !important;
}
.bg-gold {
  background-color: var(--tb-gold) !important;
}

/* Brand Logo Elements */
.tb-navbar-logo {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.tb-navbar-logo:hover {
  transform: scale(1.02);
}
.tb-footer-logo {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.tb-login-logo {
  height: 58px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Multi-color Brand Gradient Accent matching new logo (Purple -> Magenta -> Coral -> Gold) */
.tb-brand-stripe {
  height: 4px;
  background: linear-gradient(90deg, #3B115D 0%, #C026D3 35%, #FF4A46 70%, #E5A736 100%);
  width: 100%;
}

/* Modern Card UI */
.tb-card {
  background: var(--tb-card-bg);
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tb-card:hover {
  box-shadow: var(--tb-shadow);
}
.tb-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--tb-shadow-lg);
}

/* Buttons */
.btn-primary {
  background-color: var(--tb-primary);
  border-color: var(--tb-primary);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--tb-primary-hover);
  border-color: var(--tb-primary-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(76, 29, 149, 0.35);
}

.btn-outline-primary {
  border-color: var(--tb-primary);
  color: var(--tb-primary);
  font-weight: 600;
  border-radius: 10px;
}
.btn-outline-primary:hover {
  background-color: var(--tb-primary);
  border-color: var(--tb-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(76, 29, 149, 0.25);
}

.btn-secondary-action {
  background-color: var(--tb-primary-light);
  color: var(--tb-primary);
  border: 1px solid rgba(76, 29, 149, 0.2);
  font-weight: 600;
  border-radius: 10px;
}
.btn-secondary-action:hover {
  background-color: var(--tb-violet-light);
  color: var(--tb-primary-hover);
}

.btn-accent, .btn-coral {
  background-color: var(--tb-coral);
  border-color: var(--tb-coral);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.btn-accent:hover, .btn-coral:hover {
  background-color: var(--tb-coral-hover);
  border-color: var(--tb-coral-hover);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 74, 70, 0.35);
}

.btn-gold, .btn-warning {
  background-color: var(--tb-gold);
  border-color: var(--tb-gold);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.btn-gold:hover, .btn-warning:hover {
  background-color: var(--tb-gold-hover);
  border-color: var(--tb-gold-hover);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(229, 167, 54, 0.35);
}

/* Form Controls & Focus States */
.form-control:focus, .form-select:focus {
  border-color: var(--tb-primary);
  box-shadow: 0 0 0 0.25rem rgba(76, 29, 149, 0.18);
}
.form-check-input:checked {
  background-color: var(--tb-primary);
  border-color: var(--tb-primary);
}

/* Navbar */
.tb-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tb-border);
  position: sticky;
  top: 0;
  z-index: 1020;
}
.tb-brand-badge {
  background: linear-gradient(135deg, var(--tb-violet-deep), var(--tb-primary));
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-right: 8px;
}

/* Hero Section with logo glow (Purple + Golden Amber + Coral) */
.tb-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8FD 50%, #F5F2FA 100%);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--tb-border);
  position: relative;
  overflow: hidden;
}
.tb-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(76, 29, 149, 0.09) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.tb-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(229, 167, 54, 0.08) 0%, rgba(255, 74, 70, 0.06) 45%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Search Box Container */
.tb-hero-search {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--tb-shadow-lg);
  border: 1px solid var(--tb-border);
}

/* Badges */
.badge-tag {
  background-color: #F3F0F8;
  color: #382B4E;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.82rem;
  display: inline-block;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}
.badge-verified {
  background-color: var(--tb-success-light);
  color: #047857;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-featured {
  background-color: var(--tb-gold-light);
  color: #B45309;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(229, 167, 54, 0.3);
}

/* Tutor Card */
.tutor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: var(--tb-shadow-sm);
}

/* Multi-step Registration Wizard */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2.5rem;
}
.wizard-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 3px;
  background-color: var(--tb-border);
  z-index: 1;
}
.wizard-step {
  position: relative;
  z-index: 2;
  text-align: center;
  cursor: pointer;
}
.wizard-step .step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--tb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--tb-text-muted);
  margin: 0 auto 8px;
  transition: all 0.3s ease;
}
.wizard-step.active .step-circle {
  border-color: var(--tb-primary);
  background: var(--tb-primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(76, 29, 149, 0.2);
}
.wizard-step.completed .step-circle {
  border-color: var(--tb-gold);
  background: var(--tb-gold);
  color: white;
}
.wizard-step .step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tb-text-muted);
}
.wizard-step.active .step-label {
  color: var(--tb-primary);
}

.wizard-content {
  display: none;
}
.wizard-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Progress bar inside wizard (Gradient matching new logo) */
.progress-completion {
  height: 8px;
  border-radius: 4px;
  background-color: #E8E5F0;
  overflow: hidden;
}
.progress-completion-bar {
  background: linear-gradient(90deg, #4C1D95 0%, #FF4A46 60%, #E5A736 100%);
  height: 100%;
  transition: width 0.4s ease;
}

/* Availability Calendar Grid */
.day-slot-card {
  border-left: 4px solid var(--tb-primary);
  background: #FFFFFF;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--tb-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.day-pill {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tb-primary-light);
  color: var(--tb-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-right: 8px;
}

/* Sidebar for Tutor & Admin Dashboards */
.tb-sidebar {
  min-height: calc(100vh - 65px);
  background: white;
  border-right: 1px solid var(--tb-border);
  padding: 1.5rem 1rem;
}
.tb-sidebar .nav-link {
  color: #475569;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}
.tb-sidebar .nav-link i {
  width: 24px;
  font-size: 1.1rem;
  margin-right: 10px;
  color: #94A3B8;
  transition: color 0.2s ease;
}
.tb-sidebar .nav-link:hover {
  background-color: #F8FAFC;
  color: var(--tb-primary);
}
.tb-sidebar .nav-link:hover i {
  color: var(--tb-primary);
}
.tb-sidebar .nav-link.active {
  background-color: var(--tb-primary-light);
  color: var(--tb-primary);
  font-weight: 700;
}
.tb-sidebar .nav-link.active i {
  color: var(--tb-primary);
}

/* Mobile Bottom Navigation */
@media (max-width: 768px) {
  .tb-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--tb-border);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1030;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  }
  .tb-mobile-bottom-nav a {
    color: var(--tb-text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .tb-mobile-bottom-nav a i {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }
  .tb-mobile-bottom-nav a.active {
    color: var(--tb-primary);
  }
  body.has-mobile-nav {
    padding-bottom: 60px;
  }
}
