* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

header {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* profile-employee.css */

/* body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #eef2f3, #8e9eab);
  color: #222;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
} */


body {
  background: linear-gradient(to right, #d0f1f5, #ffffff);
  color: #222;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* ✅ Profile Main Container */

/* 🧍 Profile Section */
.profile-main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  min-height: calc(100vh - 80px);
}

.profile-main h1{
  font-size: 2rem;
}

.profile-card {
  background: #fff;
  width: 90%;
  max-width: 900px;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transform: scale(0.7);
  opacity: 0;
  animation: materializeCard 0.7s 1s ease-out forwards;
}

.profile-card h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.profile-card p {
  font-size: 1.1rem;
  margin: 0.25rem 0;
  color: #444;
}

/* 📊 Completion Progress */
.profile-completion-container {
  margin-top: 1.5rem;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 14px;
  border-radius: 10px;
  background: #e0e0e0;
  margin: 0.5rem 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #28a745, #4caf50);
  border-radius: 10px;
  transition: width 0.5s ease-in-out;
}

.progress-text {
  margin-top: 6px;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

/* 🎛️ Action Buttons */
.profile-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.profile-actions button,
#save-btn {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease-in-out;
  margin: 0.5rem;
}

#preview-btn {
  background: linear-gradient(to right, #007bff, #0056b3);
  color: #fff;
}

#edit-btn {
  background: linear-gradient(to right, #3699e4, #024566);
  color: #fff;
}

#save-btn {
  background: linear-gradient(to right, #28a745, #218838);
  color: white;
  padding: 0.7rem 2rem;
  display: none;
}

/* Hover Effects */
.profile-actions button:hover,
#save-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* ✨ Fade In */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🧾 Modal Preview */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: fadeInZoom 0.4s ease-in-out;
}

@keyframes fadeInZoom {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.details-grid div {
  background: #f9f9f9;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.details-grid div strong {
  display: block;
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
}

/* 🔵 Ripple Effect */
#ripple-ball {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: #007bff;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.ripple-animate {
  animation: rippleExpand 0.7s ease-out forwards;
}

@keyframes rippleExpand {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(20);
    opacity: 0.2;
  }
  100% {
    transform: translate(-50%, -50%) scale(30);
    opacity: 0;
  }
}

/* ☁️ Puff Effect */
body::before {
  content: "";
  position: fixed;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border: 130em solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: puff 0.6s 0.4s ease-out forwards;
}

@keyframes puff {
  0% {
    top: 100%;
    height: 0;
    padding: 0;
    opacity: 0;
  }
  100% {
    top: 50%;
    height: 100%;
    padding: 0 100%;
    opacity: 1;
  }
}

/* 🧱 Card Reveal */
@keyframes materializeCard {
  0% {
    transform: scale(0.7);
    opacity: 0;
    border-radius: 50%;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
    border-radius: 20px;
  }
}

/* ✍️ Edit Form */
#employee-signup-form {
  display: none;
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  animation: fadeInForm 0.5s ease-in-out;
}

#employee-signup-form input,
#employee-signup-form select,
#employee-signup-form textarea {
  width: 100%;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

/* 📱 Responsive */
@media screen and (max-width: 768px) {
  .profile-card {
    padding: 1.5rem;
    width: 95%;
  }

  .profile-card h1 {
    font-size: 1.8rem;
  }

  .profile-actions button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  #employee-signup-form input,
  #employee-signup-form select,
  #employee-signup-form textarea {
    font-size: 0.95rem;
  }

  #save-btn {
    width: 100%;
  }
}

@keyframes fadeInForm {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


