/* Glowf1sh Streaming Box Remote Control - Custom Bootstrap Styles */

/* Status Indicator Animation */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.offline {
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Button Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* Inline Edit Styling */
.editable {
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 2px 4px 2px 0;
    border-radius: 3px;
    display: inline-block;
}

.editable:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.editable-empty {
    font-style: italic;
    color: #6c757d;
}

.editable-input {
    font-size: inherit;
    font-family: inherit;
    padding: 2px 6px;
    border: 1px solid #0d6efd;
    border-radius: 3px;
    background-color: #fff;
    color: #000;
}

.editable-input:focus {
    outline: none;
    border-color: #0a58ca;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Edit Icon Styling */
.edit-icon {
    opacity: 0.5;
    color: #ffffff;
    transition: opacity 0.2s ease, color 0.2s ease;
    position: relative;
    top: -2px;
    vertical-align: middle;
    flex-shrink: 0;
}

.editable:hover .edit-icon {
    opacity: 1;
    color: #0d6efd;
}

/* Hide icon when editing */
.editable input ~ .edit-icon,
.editable .editable-input ~ .edit-icon {
    display: none;
}
