 .metric-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    border: none;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-title {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0.25rem;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden;    /* Hide overflow if needed */
    text-overflow: ellipsis; /* Optional: add ... if text overflows */
}

.metric-change {
    font-size: 0.9rem;
}

.metric-change.positive {
    color: #28a745;
}

.metric-change.negative {
    color: #dc3545;
}

.metric-icon {
    font-size: 1.5rem;
    color: #6c757d;
}

/* Button group styling */
.time-filter {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden; /* Ensures border-radius works */
}

.time-btn {
    background: #f8f9fa;
    color: #5f6b7a;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-right: 1px solid #e1e5eb !important;
}

.time-btn:last-child {
    border-right: none !important;
}

.time-btn:hover {
    background: #e9ecef;
    color: #3d4b60;
}

.time-btn.active {
    /*background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);*/
    /*background: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);*/
    /*background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);*/
    background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
    color: white;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    transform: scale(0.98);
    position: relative;
    z-index: 1;
}

.time-btn.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: white;
    border-radius: 2px;
    opacity: 0.8;
}

.time-btn i {
    font-size: 0.85em;
}


.sticky-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /*background: #000;*/
    /*color: #fff;*/
    padding: 10px 0;
    z-index: 1000; /* Ensure it stays above other content */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.news-ticker-container {
    /*background: linear-gradient(90deg, #00A1E4 0%, #0071BA 100%);*/
    background: linear-gradient(90deg, rgba(0, 161, 228, 0.9) 0%, rgba(0, 113, 186, 0.9) 100%);
    color: white;
    border: none;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.news-ticker-label {
     background: white;
    color: #0071BA;
    font-weight: bold;
    /*background: #FFF;*/
    /*color: #FF6B6B;*/
    /*font-weight: bold;*/
    /*background: #FFC107; !* Amber *!*/
    /*color: #388E3C; !* Dark green text *!*/
    /*background: #e94560;*/
    /*background: #1E3A8A; !* Dark blue *!*/
    /*color: white;*/
    /*color: #FFD700; !* Gold text *!*/
    padding: 5px 15px;
    text-transform: uppercase;
    font-size: 14px;
    white-space: nowrap;
    margin-right: 15px;
}

.news-ticker {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    flex-grow: 1;
}

.news-ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 70s linear infinite;
}

.news-ticker-content:hover {
    animation-play-state: paused !important;
}


.ticker-item {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    /*color: #FFF;*/
    /*text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);*/
    /*color: white;*/
    /*text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);*/
    margin-right: 20px;
    font-size: 16px;
    /*color: #fff;*/
    /*color: #1E3A8A; !* Dark blue *!*/
    /*text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);*/
    /*text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);*/
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

 .custom-nav-profile .nav-link {
  color: #000; /* Change to your preferred text color */
  padding: 10px 20px;
  position: relative;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.custom-nav-profile .nav-link:hover {
  color: #0071BA;
}

.custom-nav-profile .nav-link.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: #0071BA;
  position: absolute;
  bottom: 0;
  left: 0;
}

.custom-nav-profile .nav-item {
  margin: 0 10px;
    cursor: pointer;
}