@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --theme-teal: #64b3b4;
  --theme-teal-hover: #4fa1a2;
  --theme-yellow: #f2c94c;
  --theme-yellow-hover: #e0b63c;
  --theme-navy: #172337;
  --theme-bg-gray: #f4f6f8;
  --theme-text-dark: #2a3a50;
  --theme-text-muted: #6c757d;
  --theme-white: #ffffff;
}

/* Global Styles */
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background-color: #fafbfc;
  color: var(--theme-text-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

main.container {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--theme-navy);
}

/* Form Controls */
.form-control, .form-select {
  background-color: var(--theme-bg-gray);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  color: var(--theme-text-dark);
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  background-color: var(--theme-white);
  border-color: var(--theme-teal);
  box-shadow: 0 0 0 3px rgba(100, 179, 180, 0.15);
  outline: none;
}

.form-control:disabled, .form-select:disabled {
  background-color: #e9ecef;
  color: #6c757d;
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--theme-text-dark);
  margin-bottom: 0.4rem;
}

/* Buttons */
.btn-primary, .btn-success {
  background-color: var(--theme-teal) !important;
  border-color: var(--theme-teal) !important;
  color: var(--theme-white) !important;
  font-weight: 500;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-primary:hover, .btn-success:hover, .btn-primary:focus, .btn-success:focus {
  background-color: var(--theme-teal-hover) !important;
  border-color: var(--theme-teal-hover) !important;
  box-shadow: 0 4px 12px rgba(100, 179, 180, 0.2) !important;
  transform: translateY(-1px);
}

.btn-yellow {
  background-color: var(--theme-yellow) !important;
  border-color: var(--theme-yellow) !important;
  color: var(--theme-navy) !important;
  font-weight: 600 !important;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-yellow:hover, .btn-yellow:focus {
  background-color: var(--theme-yellow-hover) !important;
  border-color: var(--theme-yellow-hover) !important;
  box-shadow: 0 4px 12px rgba(242, 201, 76, 0.2) !important;
  transform: translateY(-1px);
}

.btn-secondary, .btn-outline-secondary {
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
}

.btn-link {
  color: var(--theme-teal);
  text-decoration: none;
  font-weight: 500;
}
.btn-link:hover {
  color: var(--theme-teal-hover);
  text-decoration: underline;
}

/* Cards */
.card {
  border: 1px solid #eef2f5;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  background-color: var(--theme-white);
  overflow: hidden;
}

/* Navbar */
.navbar {
  background-color: var(--theme-white) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03) !important;
  border-bottom: 1px solid #eef2f5;
  padding: 0.8rem 0;
}

.navbar-brand-custom {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--theme-navy) !important;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--theme-text-dark) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1.1rem !important;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--theme-teal) !important;
}

/* Style Yellow Button in Navbar for login */
.navbar-nav .nav-link-login {
  background-color: var(--theme-yellow) !important;
  color: var(--theme-navy) !important;
  border-radius: 6px;
  font-weight: 600 !important;
  padding: 0.5rem 1.4rem !important;
  margin-left: 0.5rem;
  box-shadow: 0 4px 6px rgba(242, 201, 76, 0.15);
  transition: all 0.2s ease;
}

.navbar-nav .nav-link-login:hover {
  background-color: var(--theme-yellow-hover) !important;
  transform: translateY(-1px);
}

/* Homepage Hero */
.hero-custom {
  position: relative;
  background: url('../images/workspace_hero.png') no-repeat center center;
  background-size: cover;
  min-height: 520px;
  display: flex;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(23, 35, 55, 0.85) 0%, rgba(23, 35, 55, 0.5) 50%, rgba(23, 35, 55, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--theme-white);
  padding: 3rem;
  max-width: 650px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--theme-white);
  line-height: 1.2;
}

.hero-search-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  backdrop-filter: blur(10px);
}

.hero-search-field {
  flex: 1;
  min-width: 150px;
}

.hero-search-field input, .hero-search-field select {
  background: transparent;
  border: none;
  font-weight: 500;
  color: var(--theme-navy);
  padding: 0.25rem 0.5rem;
}
.hero-search-field input:focus, .hero-search-field select:focus {
  border: none;
  box-shadow: none;
  background: transparent;
}

.hero-search-divider {
  width: 1px;
  height: 30px;
  background-color: #ddd;
}

/* Teacher Card Horizontal (Mockup style) */
.teacher-row-card {
  display: flex;
  background-color: var(--theme-white);
  border: 1px solid #eef2f5;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.015);
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-row-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.teacher-avatar-square {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 1.5rem;
}

.teacher-details {
  flex: 1;
}

.teacher-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--theme-navy);
  margin-bottom: 0.25rem;
}

.teacher-rating {
  font-size: 0.85rem;
  color: var(--theme-text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.teacher-rating i {
  color: #ffc107;
}

.teacher-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.teacher-tag {
  background-color: var(--theme-bg-gray);
  color: var(--theme-text-dark);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.teacher-meta-info {
  font-size: 0.85rem;
  color: var(--theme-text-muted);
}

.teacher-price-section {
  text-align: right;
  min-width: 120px;
}

.teacher-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-teal);
  margin-bottom: 0.5rem;
}

/* Sidebar Profile (Mockup style) */
.profile-sidebar-card {
  text-align: center;
  padding: 2rem 1rem;
}

.profile-avatar-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin: 0 auto 1rem auto;
  display: block;
}

.profile-sidebar-tabs {
  margin-top: 1.5rem;
  text-align: left;
}

.profile-sidebar-tabs .list-group-item {
  border: none;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  color: var(--theme-text-muted);
  transition: all 0.2s ease;
  border-radius: 6px;
  margin-bottom: 0.25rem;
}

.profile-sidebar-tabs .list-group-item:hover,
.profile-sidebar-tabs .list-group-item.active {
  background-color: var(--theme-bg-gray) !important;
  color: var(--theme-teal) !important;
  font-weight: 600;
}

/* Footer Section */
.footer-navy {
  flex-shrink: 0;
  background-color: var(--theme-navy);
  color: #a0aec0;
  font-size: 0.9rem;
  padding: 4rem 0 2rem 0;
  margin-top: 5rem;
}

.footer-navy h5 {
  color: var(--theme-white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.footer-navy a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-navy a:hover {
  color: var(--theme-white);
}

.footer-navy ul {
  padding-left: 0;
  list-style: none;
}

.footer-navy ul li {
  margin-bottom: 0.6rem;
}

.footer-social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-white) !important;
  transition: all 0.2s ease;
}

.social-circle:hover {
  background-color: var(--theme-teal);
  transform: translateY(-2px);
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2.5rem 0 1.5rem 0;
}

/* Card Centered forms (Login / register) */
.form-card-centered {
  max-width: 520px;
  margin: 4rem auto;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}
