/* Bank-like Dashboard Styles for Index Card */

/* Centered Dashboard Layout */
.centered-dashboard {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 80vh;
  padding: 2rem 0 8rem 0; /* Increased bottom padding to prevent footer overlap */
}

.centered-dashboard .dashcard {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  transform: scale(1.1);
}

/* Account Header */
.account-header {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.account-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 1.5rem 0;
}

/* Welcome Title (moved above balance) */
.welcome-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

/* Message Board / Info Panel */
.message-board {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 0 0 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.message-board-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.info-icon {
  font-size: 1.5rem;
  width: 2rem;
  text-align: center;
}

.info-text {
  font-size: 1.3rem;
  color: #4a5568;
  font-weight: 500;
}

.info-link {
  font-size: 1.3rem;
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
}

.info-link:hover {
  color: #5a67d8;
  background: #f0f4ff;
  text-decoration: none;
  transform: translateX(2px);
}

.unread-badge {
  background: #e53e3e;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  margin-left: 0.5rem;
  display: inline-block;
  min-width: 1.2rem;
  text-align: center;
  line-height: 1;
}

/* Messages Row Layout */
.messages-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.messages-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.messages-button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.messages-button:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  color: white;
  text-decoration: none;
}

/* Profile Picture */
.profile-picture-section {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #667eea;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.profile-picture-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 3rem;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.trial-notice {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.trial-text {
  font-weight: 600;
  flex: 1;
}

/* Portfolio Balance Section */
.portfolio-section {
  margin-bottom: 1.5rem;
}

.balance-header {
  text-align: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.balance-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  opacity: 0.9;
}

.balance-amount {
  font-size: 3.2rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.balance-subtitle {
  font-size: 1.1rem;
  opacity: 0.8;
  margin: 0;
}

/* Tutorial Button for Trial Users */
.tutorial-button-container {
  margin-top: 1rem;
}

.tutorial-button {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.tutorial-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

/* Holdings Grid */
.holdings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.holding-item {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.holding-item:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.metal-icon {
  font-size: 2.5rem;
}

.holding-details {
  flex: 1;
}

.holding-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
}

.holding-label {
  font-size: 1.3rem;
  color: #718096;
  margin: 0;
  font-weight: 600;
}

/* Ratios Section */
.ratios-section {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.ratios-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.ratios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.ratio-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.ratio-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

/* More specific selector to override dashboard-complete-redesign.css */
.ratios-section .ratios-grid .ratio-card .ratio-value {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
}

/* Fallback for any other ratio-value */
.ratio-value {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
}

.ratio-label {
  font-size: 1.2rem;
  color: #718096;
  margin: 0;
  font-weight: 600;
}

/* Empty Portfolio State */
.empty-portfolio {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
}

.empty-subtitle {
  font-size: 1rem;
  color: #718096;
  margin: 0 0 1.5rem 0;
}

/* Color-coded Trial Notices */
.trial-notice {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.trial-green {
  background-color: #4CAF50;
  border: 2px solid #45a049;
}

.trial-orange {
  background-color: #FF9800;
  border: 2px solid #f57c00;
}

.trial-red {
  background-color: #f44336;
  border: 2px solid #d32f2f;
}

.trial-text {
  color: black;
  font-weight: 700;
  font-size: 1.4rem;
}

/* Review Incentive Section */
.review-incentive {
  background: linear-gradient(135deg, #9C27B0, #673AB7);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 2px solid #7B1FA2;
}

.review-incentive-text {
  margin: 0;
  font-size: 1.4rem;
  color: black;
  font-weight: normal;
}

.review-incentive-text strong {
  font-weight: 800;
  font-size: 1.5rem;
  color: black;
}

.review-incentive-link {
  color: #FFE082;
  text-decoration: underline;
  font-weight: 600;
}

.review-incentive-link:hover {
  color: #FFF59D;
}

/* Empty Portfolio Styles */
.empty-portfolio-link {
  color: black;
  text-decoration: underline;
}

.empty-holdings-message p {
  text-align: center;
  color: black;
  font-size: 1.5rem;
  margin: 2rem 0;
  font-weight: 600;
}

.index-card {
  background: white;
  color: black;
}

/* Community Section */
.community-section {
  margin-top: 50px;
  margin-bottom: 2rem;
}

.community-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.community-card {
  background: #0075a8;
  border: 2px solid #005a85;
  border-radius: 16px;
  padding: 0.8rem;
  transition: all 0.2s ease;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-card:hover {
  background: #005a85;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 117, 168, 0.3);
}

.community-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.community-image {
  width: 180px;
  height: 1 80px;
  object-fit: contain;
  border-radius: 8px;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 4rem; /* Add bottom padding to prevent footer overlap */
  margin-bottom: 3rem; /* Add margin for extra space */
  border-top: 2px solid #e2e8f0;
  position: relative;
  z-index: 100; /* Ensure Quick Actions are above animations */
}

.action-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.3rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  position: relative;
  z-index: 101; /* Ensure buttons are clickable */
  display: block; /* Ensure full block-level clickability */
  cursor: pointer; /* Force cursor to show it's clickable */
  min-height: 44px; /* Ensure minimum touch target size */
  box-sizing: border-box; /* Include padding in width/height */
}

.action-link:hover {
  background: #f0f4ff;
  color: #5a67d8;
  transform: translateY(-2px);
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
  .centered-dashboard .dashcard.index-card,
  .centered-dashboard .dashcard#indexcard,
  .centered-dashboard #indexcard,
  .dashcard.index-card,
  #indexcard {
    width: 80% !important;
    margin: 0 auto !important;
    max-width: 80% !important;
    transform: none !important;
  }

  .account-title,
  .welcome-title {
    font-size: 1.8rem;
  }

  /* Message Board Mobile */
  .message-board {
    padding: 1.2rem;
    margin: 0 0 1.5rem 0;
  }

  .info-item {
    gap: 0.5rem;
    padding: 0.4rem 0;
  }

  .info-icon {
    font-size: 1.3rem;
    width: 1.8rem;
  }

  .info-text {
    font-size: 1.1rem;
  }

  .info-link {
    font-size: 1.1rem;
    padding: 0.3rem 0.6rem;
    margin: -0.3rem -0.6rem;
  }

  .unread-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    margin-left: 0.4rem;
  }

  /* Messages Row Mobile */
  .messages-row {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .messages-button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    align-self: stretch;
    text-align: center;
  }

  .balance-title {
    font-size: 1.2rem;
  }

  .balance-amount {
    font-size: 2.5rem;
  }

  .balance-subtitle {
    font-size: 1rem;
  }

  .tutorial-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
  
  .holdings-grid {
    grid-template-columns: 1fr;
  }
  
  .ratios-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-actions {
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
  }

  .action-link {
    font-size: 1.1rem !important;
    padding: 1.2rem 1.5rem !important;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  
  .trial-notice {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  
  .empty-portfolio {
    padding: 2rem 1rem;
  }
  
  .empty-icon {
    font-size: 3rem;
  }
  
  .empty-title {
    font-size: 1.25rem;
  }

  /* Mobile Community Cards - Layout Only */
  .community-cards {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    gap: 1rem !important;
  }

  .community-card {
    width: 100% !important;
  }
}


