/* ========== MAIN LAYOUT STRUCTURE ========== */
.profile-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-background);
  width: 100%;
  position: relative;
}

/* Dashboard container */
.profile-page.dashboard-container {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* Dashboard content */
.profile-page .dashboard-content {
  display: flex;
  flex: 1;
  margin-left: 280px; /* Match sidebar width */
  padding: 16px; /* Reduced padding for more compact layout */
  min-height: calc(100vh - 60px); /* Account for header */
  background-color: var(--color-background);
  transition: margin 0.3s ease;
}

/* Sidebar wrapper */
.profile-page .sidebar-wrapper {
  position: fixed;
  top: 60px;
  left: 0;
  width: 280px;
  height: calc(100vh - 60px);
  z-index: 1000;
  background-color: var(--color-sidebar-bg, #2c3e50);
  overflow-y: auto;
}

/* Main content area */
.profile-page .main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

/* Content wrapper */
.profile-page .content-wrapper {
  flex: 1;
  padding: 0;
  background-color: transparent;
  overflow-y: auto; /* Allow scrolling */
}

/* Profile container */
.profile-page .profile-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background-color: transparent;
}

.profile-page .page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

/* KPICard Styles copied from reports.css */
.profile-page .kpi-cards-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0; /* Remove margins to align with heading */
  gap: 2px; /* Further reduced gap */
}

.profile-page .kpi-card {
  padding: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.profile-page .kpi-card-inner {
  background-color: var(--color-background);
  border-radius: 8px;
  padding: 0.3rem 0.3rem 0.5rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.profile-page .kpi-card-inner:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-page .kpi-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 0.3rem;
  min-height: 45px; /* Increased minimum height to accommodate validity info */
  width: 100%;
}

.profile-page .kpi-card-title {
  font-size: 0.7rem; /* Slightly reduced */
  color: var(--color-text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  text-align: center;
  justify-content: center;
  margin-bottom: 0;
}

.profile-page .kpi-icon {
  font-size: 0.8rem;
  margin-right: 0.3rem;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.profile-page .kpi-card:hover .kpi-icon {
  transform: scale(1.2);
  opacity: 1;
}

.profile-page .kpi-card-value {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--color-primary-light);
  width: 100%;
  text-align: center;
  margin: 0.1rem 0;
}

/* Validity info styles for KPI cards */
.profile-page .validity-info {
  font-size: 0.65rem;
  color: var(--color-text-light);
  width: 100%;
  text-align: center;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.profile-page .validity-icon {
  font-size: 0.65rem;
  color: var(--color-primary-light);
  opacity: 0.8;
}

.profile-page .not-set-text {
  color: var(--color-text-light);
  font-style: italic;
  opacity: 0.8;
}

/* Color variations */
.profile-page .kpi-card.success .kpi-card-inner {
  border-color: var(--color-success);
}

.profile-page .kpi-card.success .kpi-card-value {
  color: var(--color-success);
}

.profile-page .kpi-card.danger .kpi-card-inner {
  border-color: var(--color-danger);
}

.profile-page .kpi-card.danger .kpi-card-value {
  color: var(--color-danger);
}

.profile-page .kpi-card.primary .kpi-card-inner {
  border-color: var(--color-primary-light);
}

.profile-page .kpi-card.primary .kpi-card-value {
  color: var(--color-primary-light);
}

.profile-page .profile-content {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.profile-page .profile-content:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Avatar section */
.profile-page .profile-avatar-section {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
  color: var(--color-white);
  padding: 1.5rem; /* Reduced padding */
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.25rem; /* Reduced margin */
}

.profile-page .profile-avatar-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}

.profile-page .profile-avatar-section > * {
  position: relative;
  z-index: 2;
}

.profile-page .profile-avatar {
  width: 80px; /* Smaller avatar */
  height: 80px; /* Smaller avatar */
  background-color: var(--color-white);
  color: var(--color-primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem; /* Smaller font */
  font-weight: 600;
  margin: 0 auto 0.75rem; /* Reduced margin */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.profile-page .profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.profile-page .profile-avatar-section h2 {
  font-size: 1.75rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.profile-page .user-role {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  width: fit-content;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.profile-page .user-role:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.profile-page .role-icon {
  font-size: 0.9rem;
}

/* Profile sections */
.profile-page .profile-section {
  padding: 0; /* Remove padding to align heading with cards */
  margin-bottom: 0.5rem; /* Reduced margin */
}

.profile-page .profile-section h2 {
  font-size: 1.2rem; /* Fixed at 1.2rem as requested */
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1.25rem; /* Reduced margin bottom */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 5px; /* Small padding to match cards */
}

.profile-page .section-icon {
  color: var(--color-primary-light);
  font-size: 1.2rem;
}

/* Form styles */
.profile-page .profile-form {
  padding-left: 5px; /* Add padding to match section heading */
}

.profile-page .profile-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem; /* Reduced gap */
  margin-bottom: 1.25rem; /* Reduced margin */
}

.profile-page .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem; /* Reduced gap */
  width: 100%;
  margin-bottom: 1rem; /* Reduced margin */
  align-items: flex-end; /* Align items to the bottom of the row */
}

/* Specific style for the confirm password row */
.profile-page .confirm-password-row {
  align-items: flex-start; /* Align items to the top */
  margin-top: 24px; /* Add some space above this row */
}

/* Style for the form group containing the save button */
.profile-page .confirm-password-row .form-group:last-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 8px; /* Adjust this value to fine-tune alignment */
}

.profile-page .form-group {
  flex: 1;
}

.profile-page .form-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem; /* Reduced margin */
  font-weight: 500;
  font-size: 0.9rem; /* Reduced font size */
  color: var(--color-text);
  transition: color 0.3s ease;
}

.profile-page .form-group:hover label {
  color: var(--color-primary-dark);
}

.profile-page .input-icon {
  color: var(--color-primary-light);
  transition: transform 0.3s ease, color 0.3s ease;
  font-size: 0.9rem; /* Reduced size */
}

.profile-page .form-group:hover .input-icon {
  transform: scale(1.2);
  color: var(--color-primary-dark);
}

.profile-page .form-control {
  width: 100%;
  padding: 0.6rem 0.9rem; /* Slightly reduced padding */
  border: 1px solid rgba(0, 130, 163, 0.2);
  border-radius: var(--border-radius-sm);
  background-color: rgba(227, 248, 255, 0.3);
  font-size: 0.9rem; /* Reduced font size */
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.profile-page .form-control:hover {
  border-color: var(--color-primary-light);
  background-color: rgba(227, 248, 255, 0.5);
}

.profile-page .form-control:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(0, 130, 163, 0.2);
  background-color: rgba(227, 248, 255, 0.6);
  transform: translateY(-1px);
}

/* Password input specific styling */
.profile-page input[type="password"] {
  /* Reset all browser-specific styling */
  all: initial;
  font: inherit;
  /* Then apply our own styles */
  display: block;
  width: 95%;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(0, 130, 163, 0.2);
  border-radius: var(--border-radius-sm);
  background-color: rgba(227, 248, 255, 0.3);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.profile-page input[type="password"].form-control {
  background-color: rgba(227, 248, 255, 0.3) !important;
  color: var(--color-text) !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.profile-page input[type="password"].form-control:hover {
  border-color: var(--color-primary-light) !important;
  background-color: rgba(227, 248, 255, 0.5) !important;
}

.profile-page input[type="password"].form-control:focus {
  outline: none !important;
  border-color: var(--color-primary-light) !important;
  box-shadow: 0 0 0 3px rgba(0, 130, 163, 0.2) !important;
  background-color: rgba(227, 248, 255, 0.6) !important;
}

/* Loading spinner */
.profile-page .loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  text-align: center;
}

.profile-page .spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 130, 163, 0.2);
  border-radius: 50%;
  border-top-color: var(--color-primary-light);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.profile-page .loading-spinner p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* Error message */
.profile-page .error-message {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--color-error);
  border-left: 4px solid var(--color-error);
  padding: 1.25rem 2rem;
  margin: 2rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
}

/* Stats cards */
.profile-page .stats-container {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.profile-page .stat-card {
  flex: 1 1 30%;
  min-width: 250px;
  background: var(--color-background);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 130, 163, 0.15);
  margin-bottom: 1rem;
}

.profile-page .stat-card.credit-card {
  padding-bottom: 3rem;
}

.profile-page .stat-card.used {
  border-top: 4px solid var(--color-error);
}

.profile-page .stat-card.remaining {
  border-top: 4px solid var(--color-success);
}

.profile-page .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: rgba(0, 130, 163, 0.05);
}

.profile-page .stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0.5rem 0;
  text-shadow: none;
}

.profile-page .stat-label {
  color: #4a6f8a;
  font-size: 1rem;
  font-weight: 500;
  margin: 0.75rem 0 1.5rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Progress bar styles */
.profile-page .progress-bar {
  width: 100%;
  background-color: transparent !important;
  border-radius: 3px;
  overflow: hidden;
  height: 4px;
  margin: 0.1rem 0 0.25rem 0;
}

.profile-page .progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Progress bar color classes - using variables from App.css */
.profile-page .progress-fill.bg-success {
  background-color: var(--color-success); /* 75-100% = green (#28a745) */
}

.profile-page .progress-fill.bg-info-light {
  background-color: var(--color-primary-light); /* 50-75% = light blue (#0082A3) */
}

.profile-page .progress-fill.bg-info {
  background-color: var(--color-info); /* 25-50% = blue (#17a2b8) */
}

.profile-page .progress-fill.bg-warning {
  background-color: var(--color-warning); /* 0-25% = yellow (#ffc107) */
}

/* Progress bar colors based on card type */
.profile-page .kpi-card.success .progress-fill {
  background-color: var(--color-success);
}

.profile-page .kpi-card.danger .progress-fill {
  background-color: var(--color-danger);
}

.profile-page .kpi-card.primary .progress-fill {
  background-color: var(--color-primary-light);
}

/* Activity timeline */
/* 
.profile-page .activity-timeline {
  margin-top: 1rem;
}

.profile-page .activity-item {
  display: flex;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 130, 163, 0.1);
  transition: all 0.3s ease;
}

.profile-page .activity-item:last-child {
  border-bottom: none;
}

.profile-page .activity-item:hover {
  background-color: rgba(227, 248, 255, 0.3);
  transform: translateX(5px);
  border-radius: var(--border-radius-sm);
  padding-left: 1rem;
}

.profile-page .activity-date {
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.profile-page .calendar-icon {
  color: var(--color-primary-light);
}

.profile-page .activity-details {
  font-weight: 500;
  color: var(--color-text);
}
*/

/* Responsive styles */
@media (max-width: 1200px) {
  .profile-page .stats-container {
    gap: 1.5rem;
  }
  
  .profile-page .stat-card {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 992px) {
  .profile-page .main-content {
    padding-left: 0;
  }
  
  .profile-page .dashboard-content {
    margin-left: 0;
    padding: 15px; /* Less padding on smaller screens */
  }
  
  .profile-page .sidebar-wrapper {
    transform: translateX(-280px);
  }
  
  .profile-page .sidebar-open .sidebar-wrapper {
    transform: translateX(0);
  }

  /* Make cards stack on medium screens */
  .profile-page .kpi-cards-container > div {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 0.5rem;
  }

  .profile-page .kpi-card {
    margin-bottom: 0;
    height: auto;
  }
  
  .profile-page .kpi-card-content {
    min-height: 30px;
  }

  .profile-page .card .card-body {
    padding: 0.25rem;
  }
  
  .profile-page .validity-period-container {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .profile-page .sidebar-wrapper {
    display: none;
  }
  
  .profile-page .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .profile-page .content-wrapper {
    padding: 16px;
  }
  
  .profile-page .form-row {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .profile-page .profile-avatar-section {
    padding: 1.5rem 1rem;
  }
  
  .profile-page .profile-content {
    padding: 16px;
  }
  
  .profile-page .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .profile-page .form-group {
    width: 100%;
  }
}
  
.profile-page .profile-avatar {
  width: 100px;
  height: 100px;
  font-size: 2.5rem;
}

.profile-page .stats-container {
  flex-wrap: wrap;
}

.profile-page .stat-card {
  flex: 1 1 calc(50% - 1rem);
  min-width: auto;
}

.profile-page .stat-value {
  font-size: 1.75rem;
}

.profile-page .profile-content {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.profile-page .save-profile-btn {
  background-color: var(--color-primary-light);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
  cursor: pointer;
}

.profile-page .save-profile-btn:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-page .save-profile-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.profile-page .btn-icon {
  font-size: 0.9rem;
}

/* Save Button */
.profile-page .save-button-right, .profile-page .save-button {
  background: var(--color-primary, #3498db);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
  height: 42px;
  margin: 0; /* Reset all margins */
  display: block;
}

.profile-page .save-button-right:hover, .profile-page .save-button:hover {
  background: var(--color-primary-dark, #2980b9);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-page .save-button-right:disabled, .profile-page .save-button:disabled {
  background: var(--color-disabled, #cccccc);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Custom toast styling for profile page */

/* Custom success toast class */
.custom-toast-success {
  background-color: #e6f7ff !important; /* Lighter blue background to match image */
  border: 1px solid #067494 !important; /* Specific blue border color */
  color: var(--color-primary-dark) !important; /* Dark blue text from app.css variables */
  box-shadow: none !important; /* No shadow */
  font-family: inherit !important; /* Keep existing font */
  border-radius: 4px !important; /* Slightly rounded corners */
  padding: 16px !important; /* Consistent padding */
  text-align: center !important; /* Center text */
  position: relative !important; /* Ensure proper positioning */
  z-index: 9999 !important; /* High z-index to prevent conflicts */
  animation-duration: 2s !important;
  animation-fill-mode: forwards !important;
}

/* Custom error toast class */
.custom-toast-error {
  background-color: #e6f7ff !important; /* Same light blue background as success */
  border: 1px solid #067494 !important; /* Same blue border as success */
  color: var(--color-primary-dark) !important; /* Same dark blue text as success */
  box-shadow: none !important; /* No shadow */
  font-family: inherit !important; /* Keep existing font */
  border-radius: 4px !important; /* Slightly rounded corners */
  padding: 16px !important; /* Consistent padding */
  text-align: center !important; /* Center text */
  position: relative !important; /* Ensure proper positioning */
  z-index: 9999 !important; /* High z-index to prevent conflicts */
  animation-duration: 2s !important;
  animation-fill-mode: forwards !important;
}

/* Hide progress bar in toasts */
.Toastify__progress-bar {
  display: none !important;
}

/* Override Toastify animations */
.Toastify__toast-container {
  width: 400px !important;
}

.Toastify__toast {
  margin-bottom: 10px !important;
  animation-duration: 2s !important;
}

/* Force toasts to disappear after 2 seconds */
@keyframes disappearAfter2s {
  0% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; display: none; }
}

.Toastify__toast {
  animation-name: disappearAfter2s !important;
  animation-duration: 2s !important;
  animation-fill-mode: forwards !important;
  animation-timing-function: ease !important;
}

/* Credit Validity Period styles */
.profile-page .validity-period-container {
  margin-top: -0.5rem;
}

.profile-page .card {
  margin-bottom: 0;
}

.profile-page .validity-period-container .card {
  padding: var(--spacing-xs);
  margin-top: 0;
}

.profile-page .validity-period-header {
  background: #067494;
  color: var(--color-white);
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem 0.5rem 0 0;
  height: 24px;
  display: flex;
  align-items: center;
}

.profile-page .validity-period-title {
  font-size: 0.75rem;
  margin-bottom: 0;
  line-height: 1;
  padding: 0;
}

.profile-page .validity-period-icon {
  font-size: 0.7rem;
  margin-right: 0.3rem;
}

.profile-page .validity-period-body {
  padding: 0.25rem;
}

.profile-page .validity-period-label {
  color: var(--color-primary-dark);
  font-size: 0.65rem;
  margin-bottom: 0;
  line-height: 1;
}

.profile-page .validity-period-value {
  color: var(--color-text);
  background-color: var(--color-background);
  padding: 0.2rem 0.4rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  height: 22px;
  display: flex;
  align-items: center;
}

.profile-page .not-set-text {
  color: var(--color-text-light);
}

.profile-page .card .card-header h6 {
  line-height: 1;
  margin: 0;
  padding: 0;
}

.profile-page .card .form-label {
  line-height: 1;
}

/* Utility classes */
.profile-page .visibility-hidden {
  visibility: hidden;
}

/* Loading state for credit cards */
.profile-page .loading-card {
  background-color: var(--color-background);
  border-color: var(--color-background-light);
  position: relative;
  overflow: hidden;
}

.profile-page .loading-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
  animation: loading-shine 1.5s infinite;
}

@keyframes loading-shine {
  to {
    left: 100%;
  }
}

.profile-page .loading-progress {
  height: 100%;
  width: 70%;
  background-color: rgba(0, 0, 0, 0.05) !important;
  animation: progress-pulse 1.5s infinite alternate;
}

@keyframes progress-pulse {
  from { opacity: 0.5; }
  to { opacity: 0.8; }
}

/* Color variations */