/* === TEMA WARNA TERANG === */
:root {
  /* Background */
  --color-bg-dark: #f8fafc; /* Light Sky Background */
  --color-card: #ffffff; /* White Card Background */

  /* Warna Utama */
  --color-primary: #3b82f6; /* Blue Primary */
  --color-accent: #10b981; /* Green Accent */
  --color-secondary: #ffffff; /* White Secondary */

  /* Teks */
  --color-text-main: #1f2937; /* Dark Gray Text */
  --color-text-secondary: #6b7280; /* Medium Gray Text */

  /* Background Tambahan */
  --color-bg: rgba(248, 250, 252, 0.9);
  --color-card-bg: #ffffff;
}

/* Container */
.container {
  /* background-color: red; */
  font-family: "Open Sans", sans-serif;
  /* background-color: var(--color-bg-dark); */
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  min-height: 100vh;
}

/* Floating particles background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.03; /* Sangat transparan untuk tema terang */
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.03;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.08;
  }
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.header h1 {
  font-family: "Open Sans", sans-serif;
  color: var(--color-text-main);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  opacity: 0;
  animation: slideDown 1s ease-out 0.2s forwards;
  text-shadow: none; /* Hilangkan text shadow untuk tema terang */
}

.header p {
  font-family: "Open Sans", sans-serif;
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  opacity: 0;
  animation: slideDown 1s ease-out 0.4s forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Profile Grid */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  position: relative;
  z-index: 10;
}

/* Profile Card */
.profile-card {
  background: var(--color-card);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.6);
  opacity: 0;
  animation: slideUp 1s ease-out 0.6s forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.profile-card:hover::before {
  left: 100%;
}

.profile-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: var(--color-primary);
  transition: background-color 0.3s ease;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #ffffff;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 20px rgba(59, 130, 246, 0.3);
  }
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-name {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 5px;
}

.profile-email {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.status-badge {
  cursor: pointer;
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 auto;
  animation: glow 2s ease-in-out infinite alternate;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.status-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

@keyframes glow {
  from {
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
  }
  to {
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
  }
}

/* Details Card */
.details-card {
  background: var(--color-card);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.6);
  opacity: 0;
  animation: slideUp 1s ease-out 0.8s forwards;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.details-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.details-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.details-title::before {
  content: "👤";
  font-size: 1.2rem;
}

.detail-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  transition: all 0.3s ease;
  border-radius: 8px;
}

.detail-item:hover {
  background: rgba(59, 130, 246, 0.05);
  padding-left: 10px;
  border-radius: 10px;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.2rem;
  color: #ffffff;
  background: var(--color-primary);
  transition: all 0.3s ease;
}

.detail-icon:hover {
  background: var(--color-accent);
  transform: scale(1.1);
}

.detail-content {
  flex: 1;
}

.detail-label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Quick Stats */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
  opacity: 0;
  animation: slideUp 1s ease-out 1s forwards;
}

.stat-card {
  background: var(--color-card);
  backdrop-filter: blur(10px);
  padding: 25px 20px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(229, 231, 235, 0.6);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  .header h1 {
    font-size: 2rem;
  }
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .profile-card,
  .details-card {
    padding: 20px;
  }
  .action-buttons {
    flex-direction: column;
  }
  .quick-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 375px) {
  .container {
    padding: 10px;
  }
  .header h1 {
    font-size: 1.8rem;
  }
  .profile-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
  .profile-name {
    font-size: 1.5rem;
  }
  .detail-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .detail-icon {
    margin-right: 0;
  }
  .quick-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .stat-card {
    padding: 20px 15px;
  }
}

/* Custom scrollbar untuk tema terang */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Loading animation */
.loading-shimmer {
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-accent) 50%,
    var(--color-primary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
