/**
 * Modern Professional Theme
 * Color Scheme: #600ee4 (Primary Purple)
 * Built with Bootstrap 5 & jQuery
 */

:root {
  --primary-color: #600ee4;
  --primary-dark: #4d0bb8;
  --primary-light: #7d3ff0;
  --secondary-color: #6c757d;
  --text-dark: #212529;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e9ecef;
  --shadow-sm: 0 2px 4px rgba(96, 14, 228, 0.1);
  --shadow-md: 0 4px 6px rgba(96, 14, 228, 0.15);
  --shadow-lg: 0 10px 25px rgba(96, 14, 228, 0.2);
  --transition: all 0.3s ease;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header Styles */
.main-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.logo-img {
  max-height: 50px;
  width: auto;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--primary-color);
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

/* Buttons */
.btn {
  border-radius: 8px;
  padding: 0.625rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Header Login/Register Buttons - 25px Border Radius */
.main-header .btn-primary,
.main-header .btn-outline-primary,
.offcanvas-body .btn-primary,
.offcanvas-body .btn-outline-primary {
  border-radius: 25px !important;
  -webkit-border-radius: 25px !important;
  -moz-border-radius: 25px !important;
}

/* Hero Section */
.dn-hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.dn-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.dn-hero-content {
  position: relative;
  z-index: 1;
}

.dn-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.dn-hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-style: normal;
  font-weight: 400;
}

.dn-hero-buttons .btn {
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.dn-hero-image {
  position: relative;
  z-index: 1;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Form Styles */
.form-control {
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
  border: 2px solid var(--border-color);
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(96, 14, 228, 0.25);
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
}

/* Override Bootstrap form-control border-radius */
input.form-control,
textarea.form-control,
select.form-control {
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
}

.form-label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

/* Ensure input-group inputs have proper border-radius */
.input-group .inputText,
.input-group .form-control {
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
}

.floating-label {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  color: var(--text-light);
  transition: var(--transition);
  pointer-events: none;
  background: white;
  padding: 0 0.5rem;
  z-index: 10;
  font-size: 1rem;
  line-height: 1;
}

.floating-label.active,
.inputText:focus ~ .floating-label,
.inputText:not(:placeholder-shown) ~ .floating-label,
.inputText.has-value ~ .floating-label {
  top: -0.5rem;
  font-size: 0.875rem;
  color: var(--primary-color);
  z-index: 11;
  font-weight: 500;
}

.inputText {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
  transition: var(--transition);
  background-color: white;
  position: relative;
  z-index: 1;
}

.inputText:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(96, 14, 228, 0.25);
  z-index: 2;
}

/* Ensure all input types have rounded corners */
input[type="text"].inputText,
input[type="email"].inputText,
input[type="tel"].inputText,
input[type="password"].inputText,
input[type="number"].inputText,
textarea.inputText {
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
}

/* Footer Styles */
.main-footer {
  background: var(--text-dark);
  color: white;
  /*margin-top: 5rem;*/
}

.footer-top {
  padding: 4rem 0 2rem;
}

.footer-widget {
  margin-bottom: 2rem;
}

.footer-logo-img {
  max-height: 50px;
  margin-bottom: 1rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: white;
}

.footer-menu {
  list-style: none;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 0.75rem;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-menu a:hover {
  color: white;
  padding-left: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.copyright-text a {
  color: var(--primary-light);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  display: flex;
}

/* Breadcrumb */
.breadcrumb-section {
  background: var(--bg-light);
  padding: 2rem 0;
}

.breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--text-light);
}

/* Page Content */
.page-content {
  padding: 3rem 0;
  min-height: 60vh;
}

/* Contact Page */
.contact-info-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(96, 14, 228, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Login/Register Pages */
.auth-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(96, 14, 228, 0.05) 0%, rgba(96, 14, 228, 0.1) 100%);
  padding: 3rem 0;
}

.auth-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-subtitle {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2rem;
}

.divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  background: white;
  padding: 0 1rem;
  position: relative;
  color: var(--text-light);
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: white;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.google-btn:hover {
  border-color: var(--primary-color);
  background: var(--bg-light);
}

/* Responsive */
@media (max-width: 768px) {

  .main-header{
        padding: 2px 0;
  }

  .auth-title {
  font-size: 1.6rem;
}

  .dn-hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .auth-card {
    padding: 2rem 1.5rem;
  }
  
  .navbar-nav {
    margin-top: 1rem;
  }
  
  .navbar-nav .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.shadow-custom {
  box-shadow: var(--shadow-md) !important;
}

/* Page Content Text Styles */
.page-content-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.page-content-text h1,
.page-content-text h2,
.page-content-text h3,
.page-content-text h4,
.page-content-text h5,
.page-content-text h6 {
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.page-content-text p {
  margin-bottom: 1.5rem;
}

.page-content-text img {
  border-radius: 8px;
  margin: 2rem 0;
}

.page-content-text ul,
.page-content-text ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.page-content-text li {
  margin-bottom: 0.5rem;
}

.page-content-text a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-content-text a:hover {
  color: var(--primary-dark);
}

/* Error 404 Page */
.error-content {
  padding: 3rem 0;
}

/* Form Invalid State */
.is-invalid {
  border-color: #dc3545 !important;
}

.is-invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Navbar Scrolled State */
.main-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

/* Textarea Floating Label */
textarea.inputText {
  border-radius: 8px !important;
  min-height: 120px;
  resize: vertical;
}

textarea.inputText ~ .floating-label {
  top: 0.75rem;
  z-index: 10;
}

textarea.inputText:focus ~ .floating-label,
textarea.inputText:not(:placeholder-shown) ~ .floating-label,
textarea.inputText.has-value ~ .floating-label {
  top: -0.5rem;
  z-index: 11;
  font-weight: 500;
}

/* Input Group with Button (Password Toggle) */
.input-group.position-relative .inputText {
  padding-right: 3rem;
}

.input-group.position-relative .btn-link {
  z-index: 15;
  color: var(--text-light);
  text-decoration: none;
}

.input-group.position-relative .btn-link:hover {
  color: var(--primary-color);
}

/* Off-Canvas Mobile Menu Styles */
.offcanvas {
  background: var(--bg-white);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.offcanvas-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
}

.offcanvas-title {
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.offcanvas-body {
  padding: 1.5rem;
}

.offcanvas-body .navbar-nav {
  gap: 0.5rem;
}

.offcanvas-body .nav-link {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  color: var(--text-dark);
  font-weight: 500;
}

.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link.active {
  background: var(--bg-light);
  color: var(--primary-color);
}

.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 1rem;
}

.mobile-submenu .nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.mobile-submenu .nav-link:hover {
  color: var(--primary-color);
  background: transparent;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  opacity: 0.5;
  transition: var(--transition);
}

.btn-close:hover {
  opacity: 1;
}

/* Auth Section with Header */
.auth-section {
  padding-top: 2rem;
}

/* Register Result Page */
.success-icon-wrapper {
  display: inline-block;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.register-result-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.register-result-content p {
  margin-bottom: 1rem;
}

.register-result-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.register-result-content a:hover {
  color: var(--primary-dark);
}

/* Navbar Toggler Icon */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Carousel Styles */
.dn-hero-section .carousel {
  position: relative;
}

.dn-hero-section .carousel-item {
  min-height: 500px;
  display: flex;
  align-items: center;
}

.dn-hero-section .carousel-control-prev,
.dn-hero-section .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: var(--transition);
}

.dn-hero-section .carousel-control-prev:hover,
.dn-hero-section .carousel-control-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.3);
}

.dn-hero-section .carousel-control-prev {
  left: 2rem;
}

.dn-hero-section .carousel-control-next {
  right: 2rem;
}

.dn-hero-section .carousel-indicators {
  bottom: 2rem;
  margin: 0;
}

.dn-hero-section .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  margin: 0 0.25rem;
  transition: var(--transition);
}

.dn-hero-section .carousel-indicators button.active {
  background: white;
  border-color: white;
  width: 30px;
  border-radius: 6px;
}
