/* Account Page Styles - HSE Advisor Canada
   Provides a formal, professional dashboard layout adhering to the design system
   Author: HSE Advisor Canada Front-End Team */

/**************************************
 * EMAIL VERIFICATION NOTICE
 **************************************/
.email-verification-notice {
  margin-bottom: var(--space-xl);
  animation: fadeIn 0.3s ease-in-out;
}

.verification-banner {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border: 2px solid #ffcccc;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.verification-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(213, 43, 30, 0.3);
}

.verification-content {
  flex: 1;
}

.verification-content h3 {
  color: var(--navy);
  margin: 0 0 var(--space-sm) 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.verification-content p {
  margin: 0 0 var(--space-md) 0;
  color: var(--text-dark);
  line-height: 1.6;
}

.verification-content strong {
  color: var(--navy);
  font-weight: 600;
}

.verification-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin: var(--space-lg) 0;
}

.verification-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.verification-help {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--space-lg) !important;
}

/* Dark theme support for verification notice */
.dark-theme .verification-banner {
  background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%);
  border-color: #444444;
}

.dark-theme .verification-content h3 {
  color: var(--white);
}

.dark-theme .verification-content p {
  color: var(--grey-light);
}

.dark-theme .verification-content strong {
  color: var(--white);
}

/* Responsive design for verification notice */
@media (max-width: 768px) {
  .verification-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .verification-icon {
    margin: 0 auto;
  }
  
  .verification-actions {
    justify-content: center;
  }
  
  .verification-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/**************************************
 * CORE LAYOUT
 **************************************/
.account-container {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
}

.account-sidebar {
  flex: 0 0 260px;
  background-color: var(--white);
  border: 1px solid var(--grey-light);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: sticky;
  top: 120px; /* keeps sidebar visible below fixed header */
  height: calc(100vh - 140px);
  overflow-y: auto;
}

/**************************************
 * SIDEBAR – USER PANEL
 **************************************/
.account-user {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.account-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-md);
  border: 3px solid var(--navy);
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
}

.account-user-info h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

/**************************************
 * SIDEBAR – NAVIGATION
 **************************************/
.account-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.account-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-weight: 500;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.account-nav a:hover,
.account-nav a:focus {
  background-color: var(--navy-light);
  color: var(--white);
}

.account-nav a.active {
  background-color: var(--navy);
  color: var(--white);
}

/**************************************
 * MAIN CONTENT
 **************************************/
.account-content {
  flex: 1;
}

.account-content .account-tab {
  display: none;
}

.account-content .account-tab.active {
  display: block;
}

/**************************************
 * AUTH FORMS DISPLAY CONTROL
 **************************************/
.auth-form {
  display: none;
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
}

.auth-form.active {
  display: block !important;
}

/* Show login form by default on page load */
#login-register-section:not([data-form-initialized]) #login-form {
  display: block;
}

/* Ensure clean auth container layout */
.auth-container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-xl);
}

/* Hide any debug elements */
.debug-form,
[style*="border: 3px solid #ff0000"],
[style*="border: 2px solid red"] {
  display: none !important;
}

/* Professional form styling */
.auth-form .auth-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-form .auth-header h3 {
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.auth-form .auth-header p {
  color: var(--text-muted);
}

/* Improved form spacing */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group:last-of-type {
  margin-bottom: var(--space-xl);
}

/* Clean navigation buttons */
.auth-nav {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--grey-light);
}

.auth-nav-btn {
  padding: var(--space-md) var(--space-xl);
  border: none;
  background: none;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
}

.auth-nav-btn.active,
.auth-nav-btn:hover {
  color: var(--navy);
  border-bottom-color: var(--red);
}

/* Account Dashboard Display Control */
.account-dashboard {
  display: block;
}

#account-dashboard-section {
  display: none; /* Hidden by default, shown when user is logged in */
}

#account-dashboard-section.show {
  display: block;
}

/* Recommended content tabs */
#recommended-resources {
  display: none;
}

#recommended-resources.active {
  display: block;
}

/**************************************
 * DASHBOARD CARDS
 **************************************/
.dashboard-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xxl);
}

.dashboard-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.dashboard-card-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.dashboard-card-content h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.dashboard-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.dashboard-card-subtitle {
  font-size: 0.875rem;
  color: var(--grey);
}

/**************************************
 * ACTIVITY LIST
 **************************************/
.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xxl);
}

.activity-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.activity-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  margin-top: 4px;
}

.activity-content .activity-title {
  font-weight: 600;
}

.activity-content .activity-meta {
  font-size: 0.875rem;
  color: var(--grey);
}

/**************************************
 * RECOMMENDED GRID
 **************************************/
.recommended-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.recommended-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.recommended-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.recommended-card .recommended-content {
  padding: var(--space-lg);
}

.recommended-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/**************************************
 * DASHBOARD PROGRESS SECTION
 **************************************/
.dashboard-progress-section {
  margin-bottom: var(--space-xxl);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
}

.progress-overview {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.progress-chart-container {
  flex: 1;
  min-width: 280px;
  height: 240px;
}

.progress-stats {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.progress-stat-item {
  text-align: center;
}

.progress-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-md);
  position: relative;
}

.progress-ring {
  width: 100%;
  height: 100%;
}

.progress-ring-bg {
  fill: none;
  stroke: var(--grey-light);
  stroke-width: 3.5;
}

.progress-ring-circle {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease;
}

.progress-text {
  font-size: 10px;
  fill: var(--navy);
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
}

.progress-details {
  background-color: var(--grey-lightest);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.progress-detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--grey-light);
}

.progress-detail-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/**************************************
 * DASHBOARD DEADLINES
 **************************************/
.dashboard-deadlines {
  margin-bottom: var(--space-xxl);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
}

.timeline {
  position: relative;
  margin: var(--space-lg) 0;
  padding-left: 40px;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--navy-light);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--grey-lightest);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--navy);
}

.timeline-badge {
  position: absolute;
  left: -50px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 0.875rem;
}

.timeline-content h4 {
  margin-bottom: var(--space-xs);
  font-size: 1rem;
}

.timeline-date {
  color: var(--grey);
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
  display: block;
}

.timeline-alert {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
  margin-top: var(--space-xs);
  font-weight: 500;
}

.timeline-alert-warning {
  background-color: rgba(255, 193, 7, 0.2);
  color: #856404;
}

.timeline-alert-danger {
  background-color: rgba(220, 53, 69, 0.2);
  color: #721c24;
}

.timeline-alert-info {
  background-color: rgba(0, 123, 255, 0.2);
  color: #0c5460;
}

/**************************************
 * RECOMMENDATIONS TABS & CARDS
 **************************************/
.recommendation-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.recommendation-tab {
  padding: var(--space-sm) var(--space-lg);
  border: none;
  background-color: var(--grey-light);
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.recommendation-tab:hover {
  background-color: var(--navy-light);
  color: var(--white);
}

.recommendation-tab.active {
  background-color: var(--navy);
  color: var(--white);
}

.recommended-card {
  position: relative;
}

.recommended-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background-color: var(--navy);
  color: var(--white);
  padding: 4px var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.recommended-meta {
  display: flex;
  justify-content: space-between;
  margin: var(--space-sm) 0 var(--space-md);
  font-size: 0.875rem;
  color: var(--grey);
}

.recommended-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/**************************************
 * PLACEHOLDERS & UTILITIES
 **************************************/
.loading-placeholder {
  text-align: center;
  padding: var(--space-lg);
  color: var(--grey);
}

/**************************************
 * RESPONSIVE
 **************************************/
@media (max-width: 991px) {
  .account-container {
    flex-direction: column;
  }

  .account-sidebar {
    position: relative;
    top: 0;
    height: auto;
    width: 100%;
    margin-bottom: var(--space-xl);
  }
}

@media (max-width: 767px) {
  .dashboard-overview {
    grid-template-columns: 1fr;
  }

  .recommended-grid {
    grid-template-columns: 1fr;
  }

  .progress-overview {
    flex-direction: column;
  }

  .progress-chart-container {
    height: 200px;
  }

  .recommendation-tabs {
    overflow-x: auto;
    padding-bottom: var(--space-xs);
  }
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success {
    background: #4CAF50;
    color: white;
}

.notification-error {
    background: #f44336;
    color: white;
}

.notification-info {
    background: #2196F3;
    color: white;
}

.notification-warning {
    background: #ff9800;
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    margin-left: 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.notification-close i {
    font-size: 14px;
}

/* Responsive notifications */
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    @keyframes slideIn {
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/**************************************
 * MODERN DASHBOARD STYLES
 **************************************/

/* Welcome Header */
.account-welcome-header {
    background: linear-gradient(135deg, #0F3057 0%, #1a4b8c 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    box-shadow: 0 4px 20px rgba(15, 48, 87, 0.2);
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.welcome-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.welcome-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.welcome-actions .btn {
    white-space: nowrap;
}

/* Modern Stats Grid */
.modern-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.stat-card-primary::before { background: #0F3057; }
.stat-card-success::before { background: #28a745; }
.stat-card-warning::before { background: #ffc107; }
.stat-card-info::before { background: #17a2b8; }

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card-primary .stat-icon { background: rgba(15, 48, 87, 0.1); color: #0F3057; }
.stat-card-success .stat-icon { background: rgba(40, 167, 69, 0.1); color: #28a745; }
.stat-card-warning .stat-icon { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.stat-card-info .stat-icon { background: rgba(23, 162, 184, 0.1); color: #17a2b8; }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0F3057;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.stat-progress {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #0F3057;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.stat-trend {
    font-size: 0.8rem;
    color: #28a745;
    margin-top: 0.5rem;
}

.stat-trend i {
    font-size: 0.7rem;
}

.stat-action {
    margin-top: 0.5rem;
}

.stat-action a {
    color: #0F3057;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

.stat-action a:hover {
    text-decoration: underline;
}

.stat-subtext {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.25rem;
}

/* Loading Skeleton */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    display: inline-block;
    width: 60px;
    height: 1em;
}

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

/* Smooth Transitions for Auth/Dashboard Switching */
.account-dashboard {
    transition: opacity 0.4s ease-in, transform 0.4s ease-in;
}

.account-dashboard.fade-in {
    animation: dashboardFadeIn 0.5s ease-in forwards;
}

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

/* Registration Success Animation */
.registration-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    z-index: 10000;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.registration-success i {
    font-size: 48px;
    color: #27ae60;
    margin-bottom: 20px;
}

.registration-success h3 {
    color: #0F3057;
    margin-bottom: 10px;
}

.registration-success p {
    color: #666;
    margin-bottom: 0;
}

/* Dashboard Main Content */
.dashboard-main-content {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Modern Navigation Sidebar */
.content-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.modern-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #0F3057;
}

.nav-item.active {
    background: #0F3057;
    color: white;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

/* Content Area */
.content-area {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-title {
    font-size: 1.75rem;
    color: #0F3057;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.quick-actions h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.action-btn:hover {
    background: #0F3057;
    color: white;
    border-color: #0F3057;
}

.action-btn i {
    font-size: 1.25rem;
}

/* Recent Activity */
.recent-activity,
.recommendations {
    margin-bottom: 2rem;
}

.recent-activity h3,
.recommendations h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
}

.activity-feed {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.activity-loading,
.recommendation-loading,
.loading-message {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.activity-loading i,
.recommendation-loading i,
.loading-message i {
    color: #0F3057;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-main-content {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        position: static;
    }
    
    .modern-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .nav-item span {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .account-welcome-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }
    
    .welcome-title {
        font-size: 1.75rem;
    }
    
    .modern-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .content-area {
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}