/* FC Parameter Editor Styles */

/* Alert container - fixed at top */
#messages {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: 90%;
    max-width: 600px;
    pointer-events: none;
}

#messages .alert {
    pointer-events: auto;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Slide-in animation for alerts */
.app-alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table styles */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
    font-size: 0.85rem;
}

/* Sortable column headers */
.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    background-color: rgba(0,0,0,0.05);
}

.sortable.asc::after {
    content: ' \25B2';
    font-size: 0.7rem;
}

.sortable.desc::after {
    content: ' \25BC';
    font-size: 0.7rem;
}

/* Value input styling */
.value-input {
    width: 100%;
    max-width: 100px;
}

/* Modified row highlight */
.table-warning {
    background-color: #fff3cd !important;
}

/* Button group in table */
.btn-group-sm > .btn {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
}

/* Connection status badge */
#connection-status {
    font-size: 0.75rem;
}

/* Progress bar */
.progress {
    height: 8px;
}

/* Pagination */
.pagination .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.8rem;
    }

    .value-input {
        max-width: 80px;
    }
}

/* Logs section at bottom */
#logs-section {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

/* Log container styles */
.log-container {
    background-color: #1e1e1e;
    color: #d4d4d4;
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    height: 150px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
}

.log-line {
    padding: 2px 4px;
    border-bottom: 1px solid #333;
    word-break: break-all;
}

.log-line:last-child {
    border-bottom: none;
}

.log-line:hover {
    background-color: #2d2d2d;
}

.log-line .log-time {
    color: #6a9955;
    margin-right: 0.75em;
    font-weight: 500;
}

.log-line .log-group-tag {
    color: #569cd6;
    margin-right: 0.5em;
    font-weight: 500;
}

/* Log group tabs styling */
#logGroupTabs .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

#logGroupTabs .nav-link .badge {
    font-size: 0.7rem;
    min-width: 2.5em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Log container scrollbar */
.log-container::-webkit-scrollbar {
    width: 8px;
}

.log-container::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.log-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb:hover {
    background: #777;
}
