/* 
 * Global Status Indicator Component Styles
 * Provides visual indicators for system status and background operations
 * Updated to use a corner indicator instead of a full bar
 */

.status-bar {
    position: fixed;
    bottom: 15px;
    right: 15px;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: #fff;
    cursor: pointer;
}

.status-normal {
    background-color: #28a745;
}

.status-working {
    background-color: #007bff;
}

.status-warning {
    background-color: #ffc107;
    color: #212529;
}

.status-error {
    background-color: #dc3545;
}

.status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.status-indicator {
    margin: 0;
    font-size: 16px;
}

/* Hide text in the corner indicator */
.status-text {
    display: none;
}

/* Status tooltip that appears on hover */
.status-tooltip {
    position: absolute;
    bottom: 40px;
    right: 0;
    background-color: #343a40;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1051;
    width: max-content;
    max-width: 250px;
    display: none;
}

.status-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #343a40;
}

.status-bar:hover .status-tooltip {
    display: block;
}

.status-toggle {
    cursor: pointer;
    font-size: 16px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.status-toggle:hover {
    opacity: 1;
}

.status-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(255,255,255,0.95);
    color: #212529;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.status-details.expanded {
    max-height: 300px;
    overflow-y: auto;
}

.activity-feed-container {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 5px;
}

.activity-item .text-muted {
    font-size: 0.8rem;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.status-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: status-spinner 0.75s linear infinite;
}

@keyframes status-spinner {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .status-bar {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .status-text {
        max-width: 70%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}