body {
  height: 100%;
  overflow: hidden;
  background-color: #f2edae89;
}

.navbar {
  position: sticky;
  top: 0;
  background-color: #efca6c;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.lomihub-navbar-text {
  font-family: 'Lilita One', cursive;
  color: #1c1c1c;
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 2px;  
  margin-bottom: 5.8px;
}

.navbar-brand {
  display: flex;
  align-items: flex-end; /* or center, or baseline for different effects */
}

/* Move logo further left */
.navbar-brand .logo {
  margin-right: 0 !important;
  height: 53px;
  border-radius: 53px;
  margin-left: -70px; /* Reduced from 30px to move logo left more */
}

/* Push right-side icons further right */
.navbar-nav.ms-auto {
  margin-left: auto !important;
  padding-right: 10px; 
  font-size: 19px;
}
.navbar-nav .nav-link {
  font-family: 'Alfa Slab One', cursive;
  font-weight: 500;
  margin-right: 1.5rem; 
}

.navbar-nav .nav-link.active {
  color: #ff0505;
}

/* Extra right margin for logout icon */
.navbar-nav .nav-link:last-child {
  margin-right: 0;
  padding-right: 5px; /* Additional padding for logout */
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #f0f0f0;
  transition: background 0.2s, box-shadow 0.2s;
  margin: 0 4px;
  cursor: pointer;
}

.navbar-nav .icon-circle.active {
  background: #f7de5e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-circle:hover {
  background: #f7de5e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
  }
  .navbar-nav .nav-link {
    margin-right: 0;
    margin-bottom: 0.5rem;
    justify-content: center;
  }
  .logo {
    margin-left: 10px; /* Adjusted for mobile */
  }
  .navbar-brand .logo {
    margin-left: 0; /* Reduced from 30px to move logo left more */
  }
  .lomihub-navbar-text {
    font-size: 1.4rem;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 1200px) {
  .navbar-nav {
    flex-direction: row;
    justify-content: center;
  }
  .navbar-nav .nav-link {
    margin-right: 1rem; /* Adjusted for larger screens */
  }
  .navbar-brand .logo {
    margin-left: 0; /* Reduced from 30px to move logo left more */
  }
}

/* Mobile Side Navbar Styles */
.mobile-nav-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 190px;
  background: #efca6c;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15); /* shadow on the left side */
  z-index: 1051;
  transform: translateX(100%); /* changed from -100% */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 1rem;
  overflow-y: auto;
  display: block;
}
.mobile-nav-sidebar .mobile-nav-header {
  display: flex;
  justify-content: flex-end;
  padding: 0 1rem 1rem 1rem;
}
.mobile-nav-sidebar .close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  line-height: 2;
}
.mobile-nav-sidebar ul.navbar-nav {
  padding-left: 0;
}
.mobile-nav-sidebar .nav-link {
  font-size: 1.1rem;
  color: #000000;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  font-family: "Times New Roman", Times, serif;
}
.mobile-nav-sidebar .nav-link:hover,
.mobile-nav-sidebar .nav-link.active {
  background: #f7de5e;
  color: #111111;
}
.mobile-nav-sidebar .icon-circle {
  margin-right: 10px;
}
.mobile-nav-sidebar.show {
  transform: translateX(0);
}
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1050;
  display: none;
}
.mobile-nav-backdrop.show {
  display: block;
}

/* Hide Bootstrap collapse on mobile, show on desktop */
@media (max-width: 991.98px) {
  .navbar-collapse {
    display: none !important;
  }
  .mobile-nav-sidebar {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-nav-sidebar,
  .mobile-nav-backdrop {
    display: none !important;
  }
}

.modal-dialog {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  pointer-events: none; /* allow clicks only inside modal-content */
}
.modal-content {
  pointer-events: auto;
  background: #efca6c; /* changed from #efca6cd1 to solid */
  border-radius: 2rem;
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
}

/* Modal body text */
.modal-body {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Modal footer with vertical stacked buttons */
.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  border-top: none;
  align-items: center;
}

/* Logout button styling */
.btn-logout {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #514f4f;
  background-color: #f3f4f6;
  border: 2px solid #979797;
  border-radius: 5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  user-select: none;
}

.btn-logout:hover,
.btn-logout:focus {
  background-color: #e6e2e2;
  color: #111827;
  text-decoration: none;
}

/* Cancel button styling */
.btn-cancel {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #514f4f;
  background: transparent;
  border: 2px solid #979797;
  border-radius: 5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}
.btn-cancel:hover,
.btn-cancel:focus {
  background-color: #efca6c;
  color: #374151;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem 1rem;
    max-width: 90vw;
  }
  .modal-title {
    font-size: 1.8rem;
  }
  .modal-body {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  .btn-logout {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
  .btn-cancel {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .modal-content {
    max-width: 320px;
    padding: 1.75rem 1.5rem;
  }
  .modal-title {
    font-size: 2.1rem;
  }
  .modal-body {
    font-size: 1rem;
    margin-bottom: 2.25rem;
  }
  .btn-logout {
    font-size: 1.05rem;
    padding: 0.75rem 1rem;
  }
  .btn-cancel {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
}

/*Account*/
.account-title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  white-space: nowrap;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  border-bottom: 1px solid #ddd;
  gap: 150px;
}
.tabs button {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
}
.tabs button.active {
  border-bottom: 3px solid #f9d36c;
  font-weight: bold;
}
.tab-content {
  display: none;
  padding: 20px;
  margin: auto;
  max-width: 600px;
}
.tab-content.active {
  display: block;
}

/* For mobile: ensure scroll and avoid overflow hidden */
@media (max-width: 700px) {
  body, html {
    min-height: 100vh;
    height: auto;
    overflow: auto !important;
  }
  .main-account-container {
    min-height: 100vh;
    height: auto;
    overflow: auto;
    padding-bottom: px;
  }
}

/* Profile Section */
.profile-section {
  text-align: center;
  overflow: hidden;
}
.profile-pic {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}
.profile-pic img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}
.edit-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
  cursor: pointer;
  border: 1px solid #ccc;
}
.user-info {
  margin-top: 10px;
}
.user-info h3 {
  margin: 0;
}
.user-info p {
  margin: 0;
  color: gray;
}
.form-group {
  margin: 10px 0;
  text-align: left;
  position: relative;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
.form-group input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #a19f9f;
  background: #f0eeee;
}
.password-toggle {
  position: absolute;
  right: 10px;
  top: 38px;
  cursor: pointer;
  color: #777;
  z-index: 2; /* Ensure it's above the input field */
}
.btn {
  display: block;
  width: 150px;
  padding: 10px;
  margin: 15px auto;
  border: none;
  border-radius: 6px;
  background: #f9d36c;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.btn:hover {
  background: #e6c158;
}
.btn-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn.save,
.btn.cancel {
  background: #ccc;
}
.btn.cancel:hover {
  background: #b3b3b3;
}

/*Password*/
#password {
  max-width: 600px;
  margin: 10px auto;
}

#passwordForm {
  max-width: 600px;
  margin-top: 10%;
}

.password-success-modal {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-width: 420px;
}

.password-success-modal .modal-body {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  position: relative;
  padding: 2rem 2rem !important;
}

.password-success-modal .modal-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #28a745, #20c997, #28a745);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.success-icon-wrapper {
  margin-bottom: 0.75rem;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.success-icon-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3), 0 3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.success-icon-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(32, 201, 151, 0.2));
  z-index: -1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

.success-icon-circle i {
  font-size: 1.75rem;
  color: #ffffff;
  font-weight: bold;
  animation: checkmark 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
}

@keyframes checkmark {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(45deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.success-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  margin-top: 0.75rem !important;
  margin-bottom: 0.75rem !important;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

.success-message {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto 1.25rem auto;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.btn-success-close {
  background: linear-gradient(135deg, #efca6c 0%, #ffc107 100%);
  color: #1a1a1a;
  border: none;
  padding: 0.6rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(239, 202, 108, 0.3), 0 2px 6px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.6s ease-out 0.6s both;
  letter-spacing: 0.3px;
}

.btn-success-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 202, 108, 0.4), 0 4px 10px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
}

.btn-success-close:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(239, 202, 108, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .password-success-modal .modal-body {
    padding: 1.75rem 1.25rem !important;
  }

  .success-icon-circle {
    width: 55px;
    height: 55px;
  }

  .success-icon-circle i {
    font-size: 1.5rem;
  }

  .success-title {
    font-size: 1.25rem;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .success-message {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .btn-success-close {
    padding: 0.55rem 1.75rem;
    font-size: 0.9rem;
  }
}
