/* ========================================
   COMMON STYLES FOR ALL PAGES
   ======================================== */

/* Global Styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(120deg, #161e2c 0%, #292d4d 100%);
  color: #fff;
  scroll-behavior: smooth;
}

.content-area {
  min-height: 100vh;
  margin-top: 70px;
  overflow-x: hidden;
}

/* ========================================
   TOP NAVIGATION BAR
   ======================================== */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(180deg, #21243b 0%, #1a1e32 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.4);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  animation: topBarFadeIn 0.8s ease-out;
}

@keyframes topBarFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(45deg, #ff6b6b, #f3274c, #e91e63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: 1px;
}

.mobile-menu-btn {
  display: none;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.mobile-menu-btn:hover {
  background: rgba(243, 39, 76, 0.2);
  border-color: rgba(243, 39, 76, 0.4);
  color: #f3274c;
}

/* Center Navigation */
.top-nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link-item {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: #f3274c;
  background: rgba(243, 39, 76, 0.1);
  transform: translateY(-2px);
}

/* Right Dropdown */
.top-bar .dropdown-toggle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3274c, #e91e63);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(243, 39, 76, 0.4);
  cursor: pointer;
}

.top-bar .dropdown-toggle:hover {
  background: linear-gradient(135deg, #ff6b6b, #f3274c);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(243, 39, 76, 0.6);
}

.top-bar .dropdown-toggle::after {
  display: none;
}

.dropdown-menu {
  background: linear-gradient(145deg, #21243b, #1a1e32);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  padding: 0.5rem 0;
  min-width: 200px;
}

.dropdown-item {
  color: #ccc;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(243, 39, 76, 0.1);
  color: #f3274c;
  transform: translateX(5px);
}

/* ========================================
   MOBILE SIDEBAR
   ======================================== */

.offcanvas {
  background: linear-gradient(145deg, #21243b, #1a1e32);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
  color: white;
}

.sidebar-link {
  color: #ccc;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.sidebar-link:hover {
  background: rgba(243, 39, 76, 0.1);
  color: #f3274c;
  transform: translateX(5px);
}

/* ========================================
   FORM STYLES (LOGIN & REGISTRATION)
   ======================================== */

.form-label {
  color: #ccc;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #f3274c;
  box-shadow: 0 0 0 0.25rem rgba(243, 39, 76, 0.25);
  color: #fff;
}

.form-control::placeholder {
  color: #666;
}

.input-group-text {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ccc;
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #f3274c;
  border-color: #f3274c;
}

.form-check-label {
  color: #ccc;
  cursor: pointer;
}

.form-check-label a {
  color: #f3274c;
  text-decoration: none;
}

.form-check-label a:hover {
  text-decoration: underline;
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #aaa;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #f3274c;
}

.form-select {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  padding: 0.85rem 2.5rem 0.85rem 1rem !important;
  border-radius: 10px !important;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23ccc' viewBox='0 0 16 16'><path d='M1.5 5.5l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  cursor: pointer;
}

.form-select:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: #f3274c !important;
  box-shadow: 0 0 0 0.25rem rgba(243, 39, 76, 0.25) !important;
  color: #fff !important;
  outline: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23f3274c' viewBox='0 0 16 16'><path d='M1.5 5.5l6 6 6-6'/></svg>");
}

.form-select option {
  background-color: #222;
  color: #fff;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-register,
.btn-login {
  background: linear-gradient(45deg, #f3274c, #e91e63);
  border: none;
  color: white;
  padding: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 12px;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(243, 39, 76, 0.4);
}

.btn-register:hover,
.btn-login:hover {
  background: linear-gradient(45deg, #ff6b6b, #f3274c);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(243, 39, 76, 0.6);
  color: white;
}

.my-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #aaa;
}

.my-link a {
    color: #f3274c;
    text-decoration: none;
    font-weight: 600;
}

.my-link a:hover {
    text-decoration: underline;
}

/* ========================================
   CARDS
   ======================================== */

.card.bg-dark {
  background: linear-gradient(145deg, #21243b, #1a1e32);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.card-header.bg-gradient {
  background: linear-gradient(135deg, #f3274c, #e91e63) !important;
  padding: 1rem 1.5rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeinup {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: none; }
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
  .top-nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .top-bar {
    padding: 0 1rem;
    height: 65px;
  }
  
  .content-area {
    margin-top: 65px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.4rem;
  }
  
  .top-bar {
    padding: 0 0.75rem;
  }
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1a1e32 0%, #0f1219 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1.5rem 0;
    margin-top: 4rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #f3274c;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, #f3274c, #e91e63);
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .carousel-item {
    height: 400px;
    }
    
    .section-title {
    padding-top: 2rem;
    margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .carousel-item {
    height: 350px;
    }
}