/* Navigation Styles */
.nav-container {
    position: relative;
    height: 40px; /* Match the height of the navigation */
    overflow: visible;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.nav-menu {
    display: flex;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

/* Donation Progress Bar Styles */
.donation-li {
    margin-left: 15px;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.donation-container {
    display: flex;
    flex-direction: column;
    width: 180px;
    min-width: 180px;
    height: 30px; /* Reduced from 32px */
    justify-content: center;
    margin-left: 20px;
    position: relative;
    top: -1px;
}

.donation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px; /* Reduced from 6px */
    line-height: 1;
    height: 12px; /* Added fixed height */
    overflow: hidden; /* Prevent text overflow */
}

.donation-title {
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-shadow: 0 1px 0 #000;
    line-height: 1; /* Ensure consistent line height */
    padding: 0; /* Remove any padding */
}

.donation-amount {
    font-size: 9px;
    color: #fff;
    white-space: nowrap;
    margin-left: 3px;
    text-shadow: 0 1px 0 #000;
}

.donation-progress-container {
    width: 100%;
    height: 12px !important; /* Increased from 8px */
    min-height: 12px !important; /* Increased from 8px */
    background-color: #2a2a2a;
    border-radius: 6px; /* Slightly increased to match new height */
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    border: 1px solid #000;
    margin-top: 2px;
    position: relative;
}

/* Ensure the progress bar itself has height */
.donation-progress-bar {
    height: 100% !important;
    min-height: 12px !important; /* Increased from 8px to match container */
    background: linear-gradient(135deg, #ff6b6b, #ff8e53, #ffb347);
    transition: width 0.6s ease, background 0.3s ease;
    position: relative;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
    font-size: 9px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.8);
    white-space: nowrap;
    overflow: visible;
    width: 0%; /* Start with 0 width, will be set by JS */
}

.donation-progress-bar:hover {
    background: linear-gradient(135deg, #ff8e53, #ffb347, #ffcc5c);
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.8);
}

.donation-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.15) 100%
    );
    animation: shimmer 2s infinite linear;
    background-size: 200% 100%;
}

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

/* Tooltip styles */
.donation-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.donation-tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #2d3748;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
    font-weight: normal;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.donation-tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2d3748 transparent transparent transparent;
}

.donation-tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .donation-container {
        margin: 8px auto 15px;
    }
    
    .donation-title {
        font-size: 13px;
    }
    
    .donation-amount {
        font-size: 12px;
    }
}
