/* Infobar Component CSS */

.infobar-left,
.infobar-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.infobar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.infobar-money {
    font-weight: bold;
    min-width: 80px;
}

.infobar-servers,
.infobar-customers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.infobar-icon {
    font-size: 10px;
}

.infobar-value {
    font-weight: bold;
}

/* Gauges */
.infobar-gauge {
    display: flex;
    align-items: center;
    gap: 4px;
}

.infobar-gauge-label {
    font-size: 10px;
    min-width: 28px;
}

.infobar-gauge-bar {
    width: 40px;
    height: 10px;
    background: #fff;
    border: 1px solid #808080;
    position: relative;
}

.infobar-gauge-fill {
    height: 100%;
    background: var(--gauge-ok);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.infobar-gauge-fill.warning {
    background: var(--gauge-warning);
}

.infobar-gauge-fill.critical {
    background: var(--gauge-critical);
}

.infobar-gauge-value {
    font-size: 10px;
    white-space: nowrap;
}

/* Tickets indicator */
.infobar-tickets {
    display: flex;
    align-items: center;
    gap: 4px;
}

.infobar-tickets.has-tickets .infobar-value {
    color: #ffcc00;
    font-weight: bold;
}

.infobar-tickets.has-urgent .infobar-value {
    color: #ff4444;
    font-weight: bold;
    animation: urgent-blink 1s ease-in-out infinite;
}

@keyframes urgent-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Work progress bar */
.infobar-work {
    display: flex;
    align-items: center;
    margin: 0 4px;
}

.infobar-work-progress {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 130px;
}

.infobar-work-progress.active {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    padding: 2px 6px;
}

.infobar-work-label {
    font-size: 10px;
    min-width: 60px;
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.infobar-work-bar {
    width: 36px;
    height: 8px;
    background: #fff;
    border: 1px solid #808080;
    position: relative;
}

.infobar-work-fill {
    height: 100%;
    background: var(--gauge-ok);
    transition: width 0.3s ease;
}

.infobar-work-fill.project {
    background: #4a90d9;
}

.infobar-work-fill.ticket {
    background: #d9a34a;
}

.infobar-work-value {
    font-size: 10px;
    min-width: 24px;
    text-align: right;
}

/* Clickable links */
.infobar-link {
    cursor: pointer;
    border-radius: 2px;
    padding: 2px 4px;
    margin: -2px -4px;
    transition: background-color 0.15s ease;
}

.infobar-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.infobar-link[data-link=""] {
    cursor: default;
}

.infobar-link[data-link=""]:hover {
    background: transparent;
}
