/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .refresh-title {
        color: #f0f0f0;
    }
    
    .refresh-status-message {
        background-color: rgba(40, 40, 40, 0.95);
        color: #f0f0f0;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    #refresh-page-button:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    #refresh-page-button:active {
        background-color: rgba(255, 255, 255, 0.2);
    }
}/* Refresh Icon Container */
.refresh-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-sizing: border-box;
}

/* Main Elements Container */
.refresh-main-elements {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

/* Refresh Button Link */
#refresh-page-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    padding: 10px !important;
    border-radius: 50%;
    box-sizing: border-box;
    outline: none;
    position: relative;
    width: 85px !important;
    height: 85px !important;
    min-width: 85px !important;
    min-height: 85px !important;
    max-width: 85px !important;
    max-height: 85px !important;
}

#refresh-page-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

#refresh-page-button:active {
    transform: scale(0.95);
    background-color: rgba(0, 0, 0, 0.1);
}

#refresh-page-button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Refresh Icon Image - Fixed Size with stronger specificity */
#refresh-page-button .refresh-icon,
.refresh-icon-container .refresh-icon,
img.refresh-icon {
    width: 65px !important;
    height: 65px !important;
    min-width: 65px !important;
    min-height: 65px !important;
    max-width: 65px !important;
    max-height: 65px !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform 0.3s ease;
    border: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

/* Rotation animation on hover */
#refresh-page-button:hover .refresh-icon {
    transform: rotate(180deg);
}

/* Refresh Title */
.refresh-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
};
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Status Message */
.refresh-status-message {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
    font-size: 11px;
    font-weight: 400;
    color: #666;
    text-align: center;
    white-space: nowrap;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .refresh-icon-container {
        transform: scale(0.9);
    }
    
    .refresh-title {
        font-size: 11px;
    }
    
    .refresh-status-message {
        font-size: 10px;
        padding: 4px 8px;
    }
}

@media screen and (max-width: 480px) {
    .refresh-icon-container {
        transform: scale(0.8);
    }
    
    #refresh-page-button {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        min-height: 70px !important;
        max-width: 70px !important;
        max-height: 70px !important;
        padding: 8px !important;
    }
    
    #refresh-page-button .refresh-icon,
    .refresh-icon-container .refresh-icon,
    img.refresh-icon {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
    }
    
    .refresh-title {
        font-size: 15px !important;
    }
}

/* High DPI display support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .refresh-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .refresh-title {
        color: #f0f0f0;
    }
    
    .refresh-status-message {
        background-color: rgba(40, 40, 40, 0.95);
        color: #f0f0f0;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    #refresh-page-button:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    #refresh-page-button:active {
        background-color: rgba(255, 255, 255, 0.2);
    }
}