/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }
  
  body {
  background-image: url(../assets/background.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  min-height: auto;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: auto; /* sau 100vh dacă ai nevoie */
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
}
  
  /* Left Sidebar Styles */
  .sidebar {
    width: 250px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    backdrop-filter: blur(10px);
  }
  
  .logo {
    margin-bottom: 30px;
  }
  
  .logo img {
    max-width: 180px;
  }
  
  .nav-item {
    display: flex;
    align-items: center;
    padding: 12px;
    color: #e91e63;
    text-decoration: none;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
  }
  
  .nav-item:hover {
    background-color: rgba(51, 51, 51, 0.5);
  }
  
  .nav-item i {
    margin-right: 15px;
    width: 20px;
  }
  
  .nav-item.active {
    background-color: rgba(51, 51, 51, 0.5);
  }
  
  .sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
  }

 /* Main Layout */
.main-content {
  flex-grow: 1;
  margin-left: 250px;
  min-height: auto; /* Match container height */
  background: transparent;
  backdrop-filter: none;
  width: calc(100% - 250px); /* Add explicit width */
}

.settings-container {
  padding: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: auto; /* Match container height */
}

.settings-layout {
  display: flex;
  min-height: auto; /* Changed from calc(100vh - 100px) */
  width: 100%;
}

/* Settings Layout */
.settings-wrapper {
    display: flex;
    gap: 3rem; /* Reduced from 4rem */
    padding: 2rem;
    min-height: auto; /* Match container height */
    width: 100%; /* fill available main-content width */
    margin: 0; /* align to the left of main-content so settings-sidebar isn't centered */
    border: none; /* Remove any potential borders */
}

/* Settings Sidebar */
.settings-sidebar {
    min-width: 280px; /* Reduced from 300px */
    width: 280px; /* Reduced from 300px */
    padding: 2rem;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 1rem;
}

.settings-sidebar h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

/* Settings Navigation */
.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #fff;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.settings-nav-item i {
    width: 24px;
    margin-right: 1rem;
    font-size: 1.2rem;
    color: #e91e63;
}

.settings-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-nav-item.active {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

.settings-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

/* Main Content Area */
.settings-content {
    flex: 1;
    padding: 2rem 6rem; /* Increased horizontal padding */
    background: transparent;
    border: none; /* Remove any borders */
    border-radius: 1rem;
    overflow-y: visible; /* Changed from auto to prevent scrollbar */
    width: 100%;
    max-width: none;
    min-height: auto; /* Match container height */
    min-width: 1200px; /* Increased from 680px for wider content */
}

/* Profile Picture Section */
.profile-picture-section {
    margin: 3rem 0 4rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid rgba(233, 30, 99, 0.3);
}

.change-picture-btn {
  color: #e91e63;
  background: transparent;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
}

/* Profile Section */
.profile-section {
    width: 100%;
    padding: 2rem; /* Reduced padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto; /* Match container height */
    margin-bottom: 4rem; /* Reduced from 8rem */
}

.profile-form {
    width: 100%;
    max-width: 5000px; /* Increased from 1200px */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Reduced from 3rem */
    padding-bottom: 8rem; /* Reduced from 16rem */
}

/* Form Styles */
.form-group {
    margin-bottom: 2rem; /* Reduced from 3rem */
    width: 100%;
}

.form-group label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px; /* Reduced from 8px */
  font-size: 16px; /* Increased from 14px for better readability */
}

.form-group input,
.form-group textarea {
    width: 100%;
     padding: 16px; /* Reduced from 20px */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 16px; /* Reduced from 18px */
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e91e63;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Style save button */
.save-profile-btn {
    background: #e91e63;
    border: none;
    color: white;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 3rem;
    width: auto;
    align-self: center;
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.save-profile-btn:hover {
    background: #d81557;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.save-profile-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

/* Add icon to save button */
.save-profile-btn::before {
    content: '\f0c7'; /* FontAwesome save icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
}

/* Logout Button */
.logout-btn {
  margin-top: auto;
  color: #e91e63 !important;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(233, 30, 99, 0.1) !important;
}

.logout-btn.logging-out {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

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

/* Settings Section Styles */
.settings-section {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.settings-section h2 {
    color: #fff;
    margin-bottom: 3rem;
    font-size: 24px;
}

.settings-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Select Styles */
.settings-select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 16px;
}

/* Checkbox Styles */
.checkbox-group {
    margin: 1rem 0;
    width: 100%;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #e91e63;
    cursor: pointer;
}

.checkbox-label span {
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

.checkbox-label a {
    color: #e91e63;
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    text-decoration: underline;
    color: #ff4081;
}

.switch-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.notification-group {
    margin-bottom: 2rem;
}

.notification-group h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 18px;
}

/* Help Section Styles */
.help-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.help-section {
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
}

.help-section h3 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 20px;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item h4 {
    color: #e91e63;
    margin-bottom: 0.5rem;
    font-size: 16px;
}

.faq-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.support-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.support-btn {
    background: transparent;
    border: 1px solid #e91e63;
    color: #e91e63;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-btn:hover {
    background: rgba(233, 30, 99, 0.1);
}

/* About Section Styles */
.about-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-section {
    margin-bottom: 3rem;
}

.about-logo {
    width: 200px;
    margin-bottom: 2rem;
}

.about-section h3 {
    color: #e91e63;
    margin-bottom: 1rem;
    font-size: 18px;
}

.about-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    font-size: 24px;
    color: #e91e63;
}

.stat-item span {
    color: #fff;
    font-weight: 600;
}

.about-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.about-link {
    color: #e91e63;
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-link:hover {
    color: #ff4081;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .settings-layout {
      grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 1024px) {
    .settings-wrapper {
        gap: 2rem;
        padding: 1.5rem;
        margin-left: 1rem;
        width: calc(100% - 2rem);
    }
    
    .settings-sidebar {
        width: 260px;
    }
}

@media (max-width: 768px) {
  .main-content {
      margin-left: 70px;
  }
  
  .settings-layout {
      grid-template-columns: 1fr;
  }
  
  .settings-content {
      padding: 1rem;
  }
}

@media (max-width: 768px) {
    .settings-wrapper {
        flex-direction: column;
    }
    
    .settings-sidebar {
        width: 100%;
    }
}

/* --- MOBILE PHONE (<=768px) OVERRIDES FOR SETTINGS --- */
@media (max-width: 768px) {
    /* hide global fixed sidebar (left) to free space */
    .sidebar { display: none !important; }
    .container { padding: 0 !important; }

    /* main content full width */
    .main-content { margin-left: 0 !important; width: 100% !important; padding: 8px 12px !important; box-sizing: border-box; }

    /* tighten wrapper and stack sections */
    .settings-wrapper { flex-direction: column; gap: 12px; padding: 12px; width: 100%; margin: 0 auto; }

    /* collapse sidebar into a horizontal nav above content */
    .settings-sidebar { width: 100% !important; padding: 8px 6px !important; background: transparent; }
    .settings-sidebar h2 { font-size: 1.15rem; padding-left: 0; margin-bottom: 8px }
     /* make nav horizontally scrollable but allow wrapping so items are never hidden
         - on narrow phones wrap to multiple rows, on small tablets allow horizontal scroll
         - enable momentum scrolling on iOS/Android */
     .settings-nav { display: flex !important; flex-direction: row !important; gap: 8px !important; overflow-x: auto; padding: 6px 4px; -webkit-overflow-scrolling: touch; flex-wrap: wrap; }
     .settings-nav::-webkit-scrollbar { height: 6px; }
     .settings-nav::-webkit-scrollbar-thumb { background: rgba(233,30,99,0.3); border-radius: 6px; }
     .settings-nav-item { flex: 0 0 auto; white-space: nowrap; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,0.02); }
    .settings-nav-item i { margin-right: 8px; }

    /* content area adjustments */
    .settings-content { padding: 12px !important; min-width: auto !important; max-width: 100% !important; box-sizing: border-box; padding-bottom: 120px !important; }

    /* profile picture smaller */
    .profile-picture { width: 110px !important; height: 110px !important; }
    .profile-picture-section { margin: 1.5rem 0; }

    /* form controls more compact */
    .form-group input, .form-group textarea { padding: 12px !important; font-size: 15px !important; }
    .form-group label { font-size: 15px !important; }

    /* Save button full width and touch friendly */
    .save-profile-btn { width: 100% !important; min-width: auto !important; padding: 12px 16px !important; border-radius: 12px !important; }

    /* make support buttons touch-sized */
    .support-btn { padding: 10px 14px; }
}

@media (max-width: 430px) {
    .profile-picture { width: 92px !important; height: 92px !important; }
    .settings-nav-item { padding: 8px 10px; font-size: 14px }
    .settings-content { padding: 10px !important; }
    .settings-wrapper { padding: 8px !important; gap: 10px }
    .save-profile-btn { font-size: 15px !important; padding: 10px !important }
}

/* End mobile settings adjustments */
@media (max-width: 1200px) {
  .settings-content {
    
    padding: 2rem 2rem;
  }
}


.toast-message {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    transform: none !important;

    background: #333;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
}
.toast-message.success {
    background: #28a745; /* verde */
}
.toast-message.error {
    background: #dc3545; /* roșu */
}



.form-message {
    margin: -5px 0;
    font-size: 14px;
    display: none;
    text-align: center;
}

.form-message.error {
    color: #dc3545; /* roșu */
    display: block;
}

.form-message.success {
    color: #28a745; /* verde */
    display: block;
}
.support-text {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 8px;
}

.support-email {
    color: #ff4081;
    font-weight: 500;
    text-decoration: none;
}

.support-email:hover {
    text-decoration: underline;
}
