* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #111827;
    padding-top: 90px;
}

.profile-section {
    padding: 20px 20px;
    margin-bottom: 120px;
}

.profile-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.profile-card {
    border: 1px solid rgb(192, 192, 192);
}

/* Sidebar */
.profile-sidebar {
    flex: 1 1 300px;
    background-image: linear-gradient(to bottom, #222222, #000000);
    color: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.profile-name {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.profile-email {
    color: #9ca3af;
    margin-bottom: 20px;
}

/*button style before*/
.edit-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.edit-btn:hover {
    background: #ddd;
}

.auth-btn {
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(54, 54, 54, 0.671);
    padding: 10px 20px;
    background-color: #272727;
    color: #fff;
    border: 1px solid rgb(65, 65, 65);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.auth-btn:hover {
    background-color: #d85204;
}

.logout-btn {
  display: none;
}

/* Content */
.profile-content {
    flex: 2 1 600px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.profile-card h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.info-group {
    margin-bottom: 15px;
}

.info-group span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6b7280;
}

.info-group p {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .profile-container {
        flex-direction: column;
    }

    .profile-sidebar {
        text-align: center;
    }
}

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.success-box {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  animation: pop 0.3s ease;
}

.checkmark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid #28a745;
  position: relative;
  margin: 0 auto 15px;
  animation: circlePop 0.4s ease-out;
}

.checkmark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 30px;
  border: solid #28a745;
  border-width: 0 4px 4px 0;
  transform: translate(-50%, -60%) rotate(45deg);
  opacity: 0;
  animation: drawCheck 0.2s ease forwards;
  animation-delay: 0.1s;
}

.hidden {
  display: none !important;
}

@keyframes drawCheck {
  from {
    height: 0;
    width: 0;
    opacity: 1;
  }
  to {
    height: 30px;
    width: 18px;
    opacity: 1;
  }
}

@keyframes circlePop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  80% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}