/* ==================== PROFILE PAGE STYLES ==================== */
.profile-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.profile-header {
  background: white;
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(to bottom, var(--orange-500), var(--orange-700));
}

.user-info h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--blue-900);
  margin-bottom: 8px;
  font-weight: 700;
}

.user-info p {
  color: var(--gray-500);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logout-btn {
  background: white;
  color: var(--error);
  border: 2px solid var(--error-dark);
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logout-btn:hover {
  background: var(--error);
  color: white;
  box-shadow: var(--shadow-md);
}

.content-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid var(--gray-100);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.content-card:hover {
  box-shadow: var(--shadow-lg);
}

.card-header {
  padding: 24px 40px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-header h2 {
  font-size: 1.4rem;
  color: var(--blue-700);
  font-weight: 700;
  margin: 0;
}

.card-body {
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .logout-btn {
    width: 100%;
    justify-content: center;
  }
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--blue-900);
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  font-family: var(--font-body);
  color: var(--gray-800);
  font-size: 1rem;
}

.form-input:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px var(--orange-50);
  outline: none;
}

.save-btn {
  background: linear-gradient(
    135deg,
    var(--orange-500) 0%,
    var(--orange-700) 100%
  );
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  letter-spacing: 0.02em;
}

.save-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.save-btn:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Success Message */
.success-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(
    135deg,
    var(--success) 0%,
    var(--success-dark) 100%
  );
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: translateY(150px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2000;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.success-toast.show {
  transform: translateY(0);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: white;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden; /* Fixes border radius with colored header */
}

.modal-overlay.show .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 24px;
  background: linear-gradient(
    135deg,
    var(--orange-500) 0%,
    var(--orange-700) 100%
  );
  color: white;
  border-bottom: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-radius: 16px 16px 0 0; /* Align with container radius */
  margin: -0.5px -0.5px 0 -0.5px; /* Slight overlap to prevent sub-pixel bleeding */
}

.modal-header h3 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  color: white; /* Force white color */
  font-weight: 700;
}

.modal-close {
  display: none; /* Hide X button as requested */
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  text-align: right;
  background: var(--gray-50);
  border-radius: 0 0 16px 16px;
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--gray-500);
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}

.info-text {
  color: var(--gray-800);
  font-size: 1rem;
  line-height: 1.5;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* Make products table look good in modal */
.modal-body .data-table th,
.modal-body .data-table td {
  padding: 10px;
}

.file-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--orange-600);
  transition: all 0.2s;
}

.file-link:hover {
  background: var(--gray-100);
  border-color: var(--orange-600);
}
