/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
img[src$="ckalarme_logo.svg"] {
  filter: brightness(0) saturate(100%);
}

body {
  background-color: #f5f5f8;
  color: #333;
  min-height: 100vh;
  /* padding: 20px; */
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 40px;
}

header {
  text-align: center;
  padding: 20px 0;
}

header h1 {
  font-size: 24px;
  font-weight: 700;
}

/* Profile Card Styles */
.profile-card {
  background-color: #fff;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #e9e9e9;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-button {
  background: none;
  border: none;
  font-size: 16px;
  color: #000;
  cursor: pointer;
  font-weight: 600;
  padding: 8px;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-row {
  display: flex;
  padding: 8px 0;
}

.label {
  flex: 1;
  color: #888;
  font-weight: 500;
}

.value {
  flex: 1;
  font-weight: 600;
  color: #000;
}

/* Links Container Styles */
.links-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.links-section {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.link-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  text-decoration: none;
  color: #000;
  transition: background-color 0.2s;
}

.link-item:not(:last-child) {
  border-bottom: 1px solid #f5f5f5;
}

.link-item:hover {
  background-color: #f9f9f9;
}

.link-icon {
  margin-right: 16px;
  font-size: 20px;
  width: 24px;
  display: flex;
  justify-content: center;
}

.link-text {
  font-weight: 600;
}

/* Logout Button Styles */
.logout-button {
  display: block;
  width: 100%;
  padding: 16px;
  background-color: #fff;
  color: #ff3b30;
  border: none;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s;
}

.logout-button:hover {
  background-color: #f9f9f9;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.close-button {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

.modal h2 {
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-group input, 
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
}

.form-hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #888;
}

.preview-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 12px;
  background-color: #e9e9e9;
}

.preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 24px;
}

.form-actions button {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

#cancel-button {
  background-color: #f1f1f1;
  border: none;
  color: #666;
}

#save-button {
  background-color: #000;
  border: none;
  color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .profile-header {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 16px;
  }
  
  .edit-button {
      margin-top: 8px;
      padding: 6px 12px;
  }
  
  .form-actions {
      flex-direction: column;
      gap: 12px;
  }
  
  .form-actions button {
      width: 100%;
  }
}

#navbar {
  width: 100%;
  padding: 20px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-brand img {
  height: 36px;
}

.navbar-brand span {
  font-size: 1.5rem;
  font-weight: 900;
  color: #333;
}

/* Hamburger menu (mobile only) */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Menu container */
.nav-menu {
  display: flex;
  gap: 15px;
  align-items: center;
}

.profile-avatar {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: #fbb6ce;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    right: 20px;
    flex-direction: column;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: none;
    width: 200px;
  }

  .nav-menu.show {
    display: flex;
  }
}

#profile-area a {
  text-decoration: none !important;
}

#profile-avatar {
  text-decoration: none !important;
  border-bottom: none !important;
}

#profile-avatar::before,
#profile-avatar::after {
  text-decoration: none !important;
  border-bottom: none !important;
}
