/* ==========================================================================
   Dashboard Styles - Refactored for Bootstrap Grid
   ========================================================================== */

/* General Body and Layout */
body {
    background-color: #f8f9fa; /* Light grey background */
    font-family: 'Switzer Light', Arial, sans-serif;
    color: #333333;
}

.icon {
    margin-right: 10px;
    color: #002855; /* NIST Navy */
}

/* === Dashboard Stepper === */
.dashboard-stepper {
  width: 100%;
  margin-bottom: 2em;
  gap: 0;
}
.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  position: relative;
  z-index: 2;
}
.stepper-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #002855;
  color: #002855;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 0.3em;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.stepper-step.completed .stepper-circle {
  background: #002855;
  color: #fff;
  border-color: #002855;
}
.stepper-step.active .stepper-circle {
  background: #FFB81C;
  color: #002855;
  border-color: #FFB81C;
}
.stepper-label {
  font-size: 1em;
  font-family: 'Switzer Medium', Arial, sans-serif;
  color: #002855;
  margin-top: 0.1em;
  text-align: center;
}
.stepper-step.completed .stepper-label {
  color: #002855;
  font-weight: 600;
}
.stepper-step.active .stepper-label {
  color: #002855;
  font-weight: 700;
}
.stepper-line {
    flex-grow: 1;
    height: 4px;
    background-color: #dee2e6; /* Light grey for the line */
    margin: 0 -1px;
    transform: translateY(-22px);
    z-index: 1;
}

/* General Dashboard Container */
.dashboard-container {
    max-width: 1400px;
}

/* Header */
.dashboard-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background-color: #002855; /* NIST Navy */
    color: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 40, 85, 0.08);
    border: 1px solid #e6e9ef;
    overflow: hidden;
}
.dashboard-header::before,
.dashboard-header::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #FFB81C 0%, #FF8F1C 100%);
    border-radius: 16px 16px 0 0;
    z-index: 2;
}
.dashboard-header::before {
    top: 0;
}
.dashboard-header::after {
    bottom: 0;
    border-radius: 0 0 16px 16px;
}
.dashboard-header h1,
.dashboard-header .text-muted {
    color: #fff !important;
}
.dashboard-header .badge,
.dashboard-header .badge.bg-light,
.dashboard-header .badge.text-dark {
    background: #fff !important;
    color: #002855 !important;
    font-weight: 700;
    border-radius: 20px;
    padding: 0.5em 1.2em;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,40,85,0.10);
    border: 2px solid #FFB81C;
    letter-spacing: 0.03em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    display: inline-block;
    text-shadow: 0 1px 2px #FFB81C22, 0 0px 1px #fff;
}
.dashboard-header a {
    color: #fff;
    text-decoration: underline;
}
.dashboard-header a:hover {
    color: #FFB81C;
}
.dashboard-header .dashboard-avatar-img {
    border: 3px solid #FFB81C;
    background: #fff;
}

.welcome-message h1 {
    font-family: 'Switzer SemiBold', Arial, sans-serif;
    color: #002855;
    margin-bottom: 0;
    font-size: 2.2rem;
}

.welcome-message .lead {
    color: #4F529B;
    font-size: 1.2em;
    font-family: 'Switzer Light', Arial, sans-serif;
}

/* Avatar Styles */
.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #002855;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.profile-avatar.bronze-award-avatar {
    background: linear-gradient(45deg, #cd7f32, #a05d21);
    border: 2px solid #fff;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.7);
}

.profile-avatar.silver-award-avatar {
    background: linear-gradient(45deg, #c0c0c0, #a8a8a8);
    border: 2px solid #fff;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.7);
}

.profile-avatar.gold-award-avatar {
    background: linear-gradient(45deg, #ffd700, #f0c400);
    border: 2px solid #fff;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

/* Award Level Color Classes */
.award-level-bronze {
    color: #cd7f32 !important;
    font-weight: 600;
}

.award-level-silver {
    color: #c0c0c0 !important;
    font-weight: 600;
}

.award-level-gold {
    color: #ffd700 !important;
    font-weight: 600;
}

.award-level-bronze-bg {
    background-color: #cd7f32 !important;
    color: white !important;
}

.award-level-silver-bg {
    background-color: #c0c0c0 !important;
    color: #333 !important;
}

.award-level-gold-bg {
    background-color: #ffd700 !important;
    color: #333 !important;
}

/* Dashboard Card Base Style */
.dashboard-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 40, 85, 0.08);
    border: 1px solid #e6e9ef;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 2px solid #002855;
}

.dashboard-card .card-title {
    color: #002855;
    font-family: 'Switzer SemiBold', Arial, sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.dashboard-card .card-title .icon {
    margin-right: 0.75rem;
    color: #4F529B; /* Default icon color */
}

.dashboard-card .card-title i {
    color: #002855;
    /* font-family removed to allow Font Awesome icons to render */
}

/* Next Steps Card */
.next-steps-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.next-steps-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 1.05em;
}

.next-steps-list li::before {
    content: '→';
    margin-right: 0.75rem;
    color: #002855;
    font-weight: bold;
    font-size: 1.2em;
}
.next-steps-list li.completed {
    opacity: 0.7;
    text-decoration: line-through;
}

.next-steps-list li.completed::before {
    content: '✓';
    color: #008A60;
}


/* Your Progress Card */
.progress-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.progress-item .icon {
    margin-right: 1rem;
    font-size: 1.4rem;
    color: #008A60; /* Green for complete */
    width: 30px;
    text-align: center;
}

.progress-item .icon.pending {
    color: #FF8F1C; /* Orange for pending */
}

.progress-item .progress {
    flex-grow: 1;
    height: 8px;
}


/* Achievements Card */
.achievements-summary {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.xp-display .value, .level-display .value {
    font-size: 2rem;
    color: #4F529B;
    font-weight: 700;
    font-family: 'Switzer SemiBold', Arial, sans-serif;
}

.xp-display .label, .level-display .label {
    font-weight: 500;
    color: #002855;
    font-size: 0.9em;
}

.dashboard-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #dee2e6;
    transition: transform 0.2s ease-in-out;
}

.dashboard-avatar:hover {
    transform: scale(1.1);
    border-color: #002855;
}

/* Completed Awards Section */
.completed-awards-summary {
    border-bottom: 1px solid #e6e9ef;
    padding-bottom: 1rem;
}

.completed-award-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.completed-award-item .badge-img {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
}

.completed-award-item .award-level-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #002855;
    vertical-align: middle;
}

/* Hours Progress Display */
.hours-summary {
    border-top: 1px solid #e6e9ef;
    padding-top: 1rem;
}

.total-hours-display {
    text-align: center;
    margin-bottom: 1rem;
}

.total-hours-display .value {
    font-size: 1.8rem;
    color: #008A60;
    font-weight: 700;
    font-family: 'Switzer SemiBold', Arial, sans-serif;
}

.total-hours-display .total-hours-text {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

.total-hours-display .label {
    font-weight: 500;
    color: #002855;
    font-size: 0.9em;
}

.section-breakdown {
    margin-top: 1rem;
}

.section-item {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.section-name {
    font-weight: 600;
    color: #002855;
    font-size: 0.9em;
}

.section-hours {
    font-weight: 600;
    color: #4F529B;
    font-size: 0.85em;
}

.section-progress {
    margin-bottom: 0.25rem;
}

.section-progress .progress-bar {
    background-color: #008A60;
}

.section-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
}

.section-percentage {
    color: #008A60;
    font-weight: 600;
}

.section-level {
    color: #4F529B;
    font-weight: 500;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.badge-item {
    text-align: center;
}

.badge-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
    border-radius: 50%;
    transition: transform 0.2s;
}

.badge-item img:hover {
    transform: scale(1.1);
}

.badge-item .name {
    font-size: 0.8em;
    color: #4a4a4a;
}

/* AI Tools Card */
.tool-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.tool-item:last-child {
    margin-bottom: 0;
}

.tool-item .icon {
    font-size: 1.8em;
    margin-right: 1rem;
    color: #78D5E1; /* Light blue for tools */
    width: 40px;
    text-align: center;
}

.tool-info .title {
    font-weight: bold;
    color: #002855;
    font-size: 1.05em;
}

.tool-info .description {
    font-size: 0.95em;
    color: #4a4a4a;
    margin-bottom: 0.25rem;
}


/* Leaderboard Card */
.leaderboard-body {
    max-height: 280px; /* Or whatever height fits well */
    overflow-y: auto;
    padding-right: 0.5rem; /* For scrollbar */
}

.leaderboard-list {
    padding-left: 0;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid #e6e9ef;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item .rank {
    font-weight: bold;
    color: #002855;
    min-width: 30px;
    text-align: center;
    font-size: 1.1em;
}

.leaderboard-item .name {
    flex-grow: 1;
    padding-left: 1rem;
    font-weight: 500;
}

.leaderboard-item .xp {
    font-weight: bold;
    color: #4F529B;
}

/* Recent Activity Card */
.recent-activity-card {
    background-color: #ffffff !important; /* Override inline styles if any */
}

.recent-activity-card .activity-list {
    padding-left: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95em;
    margin-bottom: 1rem;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-item .icon {
    color: #4F529B; /* Purple icon */
    font-size: 1.2em;
    margin-top: 0.1em;
}

.activity-item .description {
    flex-grow: 1;
    color: #002855;
}

.activity-item .date {
    color: #6c757d;
    font-size: 0.9em;
    white-space: nowrap;
}

/* Button Styles */
.btn-primary-dashboard {
    background-color: #002855;
    border-color: #002855;
    color: #fff;
    font-family: 'Switzer SemiBold', Arial, sans-serif;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-transform: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary-dashboard:hover {
    background-color: #FFB81C;
    border-color: #FFB81C;
    color: #002855;
}

.btn-secondary-outline-dashboard {
    background-color: transparent;
    border: 2px solid #4F529B;
    color: #4F529B;
    font-family: 'Switzer SemiBold', Arial, sans-serif;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-transform: none;
    transition: background-color 0.2s, color 0.2s;
}

.btn-secondary-outline-dashboard:hover {
    background-color: #4F529B;
    color: #fff;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.teams-list .team-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.teams-list .team-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.team-member-list .list-group-item {
    padding-left: 0;
    padding-right: 0;
    border: none;
    background-color: transparent;
}

/* Teams Card Refined Styles */
.teams-card h6.team-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #002855;
}

.teams-card .team-member-list .list-group-item {
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.teams-card .team-member-list .list-group-item:last-child {
    border-bottom: none;
}

.teams-card .latest-teams-section .team-name-small {
    font-size: 0.95rem;
    font-weight: 600;
}

.teams-card hr {
    border-color: #e6e9ef;
}

.navbar-brand-separator {
    display: inline-block;
    width: 2px;
    height: 32px;
    background: #FFB81C;
    margin: 0 12px 0 8px;
    border-radius: 1px;
    vertical-align: middle;
}

.navbar-brand-title {
    font-family: 'Switzer', Arial, sans-serif;
    font-weight: 700;
    color: #002855;
    font-size: 1.15em;
    letter-spacing: 0.5px;
    line-height: 1;
    vertical-align: middle;
}

.achievements-card .completed-award-item {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background-color: #f8f9fa;
  border-radius: var(--bs-border-radius);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.achievements-card .badge-img-small {
  width: 64px;
  height: 64px;
  margin-right: 12px;
}

.achievements-card .badge-img {
  width: 44px;
  height: 44px;
}

.achievements-card .section-item {
  margin-bottom: 0.75rem;
}

.achievements-card .section-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.achievements-card .section-details {
  font-size: 0.8rem;
  color: #6c757d;
}

/* NIST Brand Typography */
h1, h2, h3 {
  color: #002855 !important;
  font-family: 'Switzer SemiBold', Arial, sans-serif;
}

body, .dashboard-card, .small {
  color: #333333;
  font-family: 'Switzer Light', Arial, sans-serif;
}

/* Outline button hover */
.btn-outline-primary:hover {
  background:#002855;
  color:#fff;
}

/* Accent tags */
.badge, .user-grade, .compact-user-grade {
  color: #4F529B;
  background: #F4F7FB;
  font-family: 'Switzer Medium', Arial, sans-serif;
}

/* Leaderboard Card Branding */
.dashboard-card.leaderboard-card {
  border-top: 2px solid #002855;
  background: #fff;
  font-family: 'Switzer', Arial, sans-serif;
  min-height: 600px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Leaderboard Style Buttons */
.leaderboard-style-buttons {
  width: 100%;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.leaderboard-style-buttons .leaderboard-btn {
  min-width: 130px;
  padding: 0.8rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 12px;
  margin: 0 0.25rem;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border: 2px solid #e6e9ef;
  background: #fff;
  color: #002855;
  transition: all 0.2s ease-in-out;
}
.leaderboard-style-buttons .leaderboard-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 40, 85, 0.1);
  border-color: #002855;
}
.leaderboard-style-buttons .leaderboard-btn.active {
  background: #002855;
  color: #fff;
  border-color: #002855;
}
.leaderboard-style-buttons .leaderboard-btn.active i,
.leaderboard-style-buttons .leaderboard-btn.active span {
  color: #fff !important;
}
.leaderboard-style-buttons .leaderboard-btn i {
  margin: 0;
  font-size: 1.8em;
  line-height: 1;
}
.leaderboard-style-buttons .leaderboard-btn span {
  margin: 0;
  text-align: center;
  width: 100%;
  line-height: 1.2;
  font-family: 'Switzer Medium', Arial, sans-serif;
  font-weight: 500;
}

/* Icon Colors */
.leaderboard-style-buttons .fa-clock,
.leaderboard-style-buttons .fa-list,
.leaderboard-style-buttons .fa-calendar-check,
.leaderboard-style-buttons .fa-undo {
  color: #002855;
}
.leaderboard-style-buttons .fa-balance-scale {
  color: #4F529B;
}

/* Leaderboard Medal Colors */
.leaderboard-row .rank {
  font-weight: bold;
}
.leaderboard-row .rank:nth-child(1) { color: #FFB81C; }
.leaderboard-row .rank:nth-child(2) { color: #C0C0C0; }
.leaderboard-row .rank:nth-child(3) { color: #CD7F32; }

/* Custom Scrollbar */
.scrollable-leaderboard {
  scrollbar-width: thin;
  scrollbar-color: #002855 #f1f1f1;
}
.scrollable-leaderboard::-webkit-scrollbar {
  width: 10px;
  background: #f1f1f1;
}
.scrollable-leaderboard::-webkit-scrollbar-thumb {
  background: #002855;
  border-radius: 6px;
  transition: background 0.2s;
}
.scrollable-leaderboard::-webkit-scrollbar-thumb:hover {
  background: #001a3a;
}

/* Headings and Body */
.dashboard-card .card-title,
.dashboard-card .card-title i {
  color: #002855;
  font-family: 'Switzer SemiBold', Arial, sans-serif;
}
.dashboard-card {
  color: #333333;
  font-family: 'Switzer Light', Arial, sans-serif;
}

.fa-solid, .fa-regular, .fa-brands, .fas, .far, .fab {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.dashboard-header h1,
.dashboard-header .text-muted,
.dashboard-header .badge {
    color: #fff !important;
}
.dashboard-header .dashboard-avatar-img {
    border: 3px solid #FFB81C;
    background: #fff;
}

.navbar-nav .nav-link.dropdown-toggle {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

.badge-label {
  font-size: 0.95em;
  color: #4F529B;
  font-family: 'Switzer Medium', Arial, sans-serif;
  margin-top: 0.25em;
  text-align: center;
  line-height: 1.1;
  word-break: break-word;
} 

/* Enhanced Achievements Card Styles */
.recent-badge-hover:hover {
  transform: scale(1.05) !important;
}

.available-badge-hover:hover {
  opacity: 1 !important;
  filter: grayscale(0%) !important;
  transform: scale(1.05) !important;
}

.view-all-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0,123,255,0.3) !important;
}

.badge-container {
  transition: all 0.3s ease;
}

.badge-container:hover {
  background: #ffffff !important;
  border-color: #dee2e6 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.recent-badge-item {
  transition: all 0.3s ease;
}

.available-badge-item {
  transition: all 0.3s ease;
} 

.badge-name {
  text-align: center !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Latest Badge Display Styles */
.latest-badge-img {
  transition: all 0.3s ease;
  animation: badgeGlow 2s ease-in-out infinite alternate;
}

.latest-badge-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,40,85,0.25) !important;
}

.latest-badge-celebration {
  animation: celebration 1.5s ease-in-out infinite;
}

@keyframes badgeGlow {
  0% {
    box-shadow: 0 6px 16px rgba(0,40,85,0.20);
  }
  100% {
    box-shadow: 0 6px 16px rgba(255, 184, 28, 0.30);
  }
}

@keyframes celebration {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

/* Store Button Styles */
.store-button {
  transition: all 0.3s ease;
  display: inline-block;
}

.store-button:hover {
  background-color: #ff9800 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3) !important;
  text-decoration: none;
} 
