/* ============================
   PROFILE PAGES - COMMON CSS
   File: profile/profile.css
   ============================ */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #f8f9fc, #e9eff5);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ======================
   NAVBAR
   ====================== */
.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar .logo {
  font-size: 22px;
  font-weight: bold;
  color: #007bff;
}

.navbar .nav-links {
  display: flex;
  gap: 20px;
}

.navbar .nav-links a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: #007bff;
}

/* ======================
   PAGE CONTENT
   ====================== */
main.page-content {
  flex-grow: 1;
  padding: 40px 30px;
  max-width: 960px;
  margin: 30px auto;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

main h1 {
  font-size: 28px;
  color: #222;
  margin-bottom: 15px;
}

main p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}
.view-profile.active {
  font-weight: bold;
  color: #007bff;
}
.profile-page-wrapper {
  display: flex;
  min-height: 100vh;
}

.profile-sidebar {
  width: 25%;
  background: #fff;
  padding: 20px;
  border-right: 1px solid #ddd;
}

.profile-content {
  flex: 1;
  padding: 40px;
  background: #f9f9f9;
}

.profile-details-card {
  display: flex;
  gap: 40px;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.profile-details-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

/* =================== Edit Profile =================== */
.profile-edit-section {
  padding: 40px;
  background: #f9f9fc;
  display: flex;
  justify-content: center;
  align-items: center;
}

.edit-profile-card {
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.edit-profile-card h2 {
  margin-bottom: 25px;
  font-size: 28px;
  color: #333;
  text-align: center;
}

.edit-profile-form .form-row {
  margin-bottom: 20px;
}

.edit-profile-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

.edit-profile-form input,
.edit-profile-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

.edit-profile-form textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}

.save-btn {
  padding: 12px 25px;
  background: #3f51b5;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.save-btn:hover {
  background: #2e3aa1;
}

.cancel-link {
  color: #888;
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
}
.edit-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #4e9af1, #3464c4);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.edit-btn:hover {
  background: linear-gradient(135deg, #3464c4, #4e9af1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}


/* ======================
   FOOTER
   ====================== */
footer {
  background-color: #f1f3f6;
  padding: 20px 30px;
  text-align: center;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #e0e0e0;
}

/* ======================
   RESPONSIVE DESIGN
   ====================== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar .nav-links {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  main.page-content {
    padding: 25px 20px;
    margin: 20px;
  }

  main h1 {
    font-size: 24px;
  }
}
