.gf-tasks-counter {
    position: relative;
    display: inline-block;
    cursor: default;
}

.gf-tasks-counter-clickable {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gf-tasks-counter-clickable:hover {
    transform: scale(1.05);
}

.gf-tasks-counter-badge {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* تنظیمات برای حفظ دایره */
    min-width: 24px;
    min-height: 24px;
    width: 24px;
    height: 24px;
    
    /* برای اعداد بزرگتر */
    white-space: nowrap;
    text-align: center;
}

/* تنظیمات خاص برای +99 */
.gf-tasks-counter-badge:contains('+99'),
.gf-tasks-counter-badge:contains('+') {
    min-width: 26px;
    width: 26px;
    height: 26px;
    min-height: 26px;
    font-size: 10px;
    letter-spacing: -0.5px;
}

/* برای اعداد دورقمی */
.gf-tasks-counter-badge-large {
    min-width: 26px;
    width: 26px;
    height: 26px;
    min-height: 26px;
    font-size: 10px;
    letter-spacing: -0.5px;
}

.gf-tasks-counter-red .gf-tasks-counter-badge {
    background-color: #dc3545;
}

.gf-tasks-counter-blue .gf-tasks-counter-badge {
    background-color: #007cba;
}

.gf-tasks-counter-green .gf-tasks-counter-badge {
    background-color: #28a745;
}

.gf-tasks-counter-orange .gf-tasks-counter-badge {
    background-color: #fd7e14;
}

.gf-tasks-counter-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    margin-bottom: 8px;
    min-width: 150px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.4;
}

.gf-tasks-counter-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.gf-tasks-counter:hover .gf-tasks-counter-tooltip {
    opacity: 1;
    visibility: visible;
}

.gf-tasks-counter-title {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 14px;
}

.gf-tasks-counter-message {
    margin-bottom: 6px;
    font-size: 12px;
}

.gf-tasks-counter-count {
    font-size: 11px;
    color: #ccc;
    margin-bottom: 2px;
}

.gf-tasks-counter-click-hint {
    font-size: 10px;
    color: #aaa;
    font-style: italic;
}
