/* ===== Global styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #ecf9f0;
  color: #222;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* ===== Container ===== */
.container {
  max-width: 600px;
  width: 100%;
  background: white;
  padding: 2.5rem 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.12);
  animation: fadeIn 1s ease-in-out;
  text-align: center;
}

/* ===== Animation ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Form Inputs and Buttons ===== */
label {
  display: block;
  margin-top: 1.2rem;
  font-weight: 600;
  color: #257537;
  text-align: left;
}

input[type=email],
input[type=password],
input[type=text],
input[type=file],
button {
  width: 100%;
  padding: 0.9rem 1.2rem;
  margin-top: 0.3rem;
  border-radius: 12px;
  border: 1.5px solid #ccc;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

input:focus {
  outline: none;
  border-color: #257537;
  box-shadow: 0 0 8px rgba(37, 117, 55, 0.5);
}

button {
  background-color: #257537;
  color: white;
  font-weight: 700;
  cursor: pointer;
  margin-top: 2rem;
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(37,117,55,0.4);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #145422;
  transform: scale(1.05);
}

/* ===== Profile Page ===== */
.profile-box h2 {
  margin-bottom: 1.5rem;
  color: #257537;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 1.1px;
}

.profile-pic {
  display: block;
  margin: 0 auto 1.8rem auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #257537;
  box-shadow: 0 6px 15px rgba(37, 117, 55, 0.3);
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.07);
}

/* Profile info container - card style */
.profile-info {
  background: #f5fcf7;
  border-radius: 15px;
  padding: 2rem 2.5rem;
  box-shadow: 0 8px 25px rgba(37,117,55,0.12);
  margin-bottom: 2rem;
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.profile-info p {
  font-size: 1.15rem;
  margin: 1rem 0;
  color: #3a3a3a;
}

.profile-info p strong {
  color: #257537;
  display: inline-block;
  width: 120px;
}

/* Buttons container for side by side buttons */
.buttons-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Back to Home & Logout buttons */
.btn-home, .btn-logout {
  flex: 1 1 120px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 10px rgba(0,0,0,0.12);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-home {
  background-color: #257537;
  color: white;
}

.btn-home:hover {
  background-color: #145422;
  transform: scale(1.05);
}

.btn-logout {
  background-color: crimson;
  color: white;
}

.btn-logout:hover {
  background-color: #a80000;
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  
  .desktop-profile {
    display: none;
  }
}
@media (max-width: 480px) {
  .desktop-text {
    display: none;
  }
.desktop-profile {
    display: none;
  }
 
}