/* Index.html CSS Styles */

/* Table styles */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #2a3550;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.table-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    background-color: #0f1420;
}
.table-container thead {
    background: linear-gradient(to right, #1a2137, #151b2e);
}
.table-container thead tr th {
    padding: 10px 12px;
    text-align: left;
    color: #d1d5db;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #2a3550;
}
.table-container tbody tr {
    border-bottom: 1px solid #2a3550;
}
.table-container tbody tr:nth-child(even) { background-color: #0f1420; }
.table-container tbody tr:nth-child(odd) { background-color: #151b2e; }
.table-container tbody tr:hover {
    background-color: #1a2137 !important;
}
.table-container tbody td {
    padding: 10px 12px;
    color: #e5e7eb;
    font-size: 0.75rem;
}

/* Time column width */
.table-container thead tr th:last-child,
.table-container tbody tr td:last-child {
    min-width: 160px;
    width: 160px;
    white-space: nowrap;
}

/* Side badges */
.side-long {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    display: inline-block;
}
.side-short {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    display: inline-block;
}

/* Activity log */
#activity-log {
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}
#activity-log::-webkit-scrollbar {
    width: 8px;
}
#activity-log::-webkit-scrollbar-track {
    background: #0f1420;
}
#activity-log::-webkit-scrollbar-thumb {
    background: #2a3550;
    border-radius: 4px;
}
#activity-log::-webkit-scrollbar-thumb:hover {
    background: #4a9eff;
}

.log-entry {
    padding: 4px 8px;
    border-left: 2px solid transparent;
    margin-bottom: 2px;
}
.log-entry.success { border-left-color: #10b981; }
.log-entry.error { border-left-color: #ef4444; }
.log-entry.warning { border-left-color: #ffa726; }
.log-entry.info { border-left-color: #4a9eff; }

/* Monitoring Status Indicator */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.status-indicator.active {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Stat card animation */
@keyframes countUp {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}
.stat-card.updated {
    animation: countUp 0.3s ease-in-out;
}