/* Blueonnix Server & Service Logs Viewer - Solid Minimal Dark Theme */
.logs-container {
    padding: 1.5rem;
    color: var(--text-main, #f4f4f5);
    background-color: var(--bg-main, #09090b);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Service Health & Status Grid */
.logs-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}

.log-service-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 0 !important;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.65rem;
    transition: border-color 0.15s ease;
}

.log-service-card:hover {
    border-color: #3f3f46;
}

.log-service-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-service-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.log-status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 0 !important;
}

.log-status-dot.active {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.log-status-dot.inactive {
    background: #ef4444;
}

.log-service-badge {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.4rem;
    background: #27272a;
    color: #a1a1aa;
    border-radius: 0 !important;
}

.log-service-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #a1a1aa;
    font-family: monospace;
}

.log-service-actions {
    display: flex;
    gap: 0.4rem;
    border-top: 1px solid #27272a;
    padding-top: 0.5rem;
}

.log-btn-xs {
    background: transparent;
    border: 1px solid #3f3f46;
    color: #d4d4d8;
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    border-radius: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.15s ease;
}

.log-btn-xs:hover {
    background: #27272a;
    color: #ffffff;
    border-color: #52525b;
}

.log-btn-restart {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

.log-btn-restart:hover {
    background: rgba(251, 191, 36, 0.15);
    color: #fde047;
    border-color: #fde047;
}

/* Main Console Card */
.logs-console-card {
    background: #121214;
    border: 1px solid #27272a;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: calc(100vh - 360px);
    overflow: hidden;
}

/* Control Toolbar */
.logs-toolbar {
    background: #18181b;
    border-bottom: 1px solid #27272a;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.logs-toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.log-select {
    background: #121214;
    border: 1px solid #27272a;
    color: #f4f4f5;
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    border-radius: 0 !important;
    outline: none;
    cursor: pointer;
}

.log-select:focus {
    border-color: #3b82f6;
}

.log-search-input {
    background: #121214;
    border: 1px solid #27272a;
    color: #f4f4f5;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    border-radius: 0 !important;
    outline: none;
    min-width: 220px;
}

.log-search-input:focus {
    border-color: #3b82f6;
}

/* Terminal Screen */
.log-terminal-window {
    background: #09090b;
    color: #d4d4d8;
    font-family: Consolas, Monaco, "Lucida Console", "Courier New", monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: auto;
    flex: 1;
    min-height: 400px;
    max-height: calc(100vh - 440px);
    user-select: text;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-line {
    padding: 0.1rem 0;
    display: flex;
    gap: 0.75rem;
}

.log-line:hover {
    background: rgba(255, 255, 255, 0.03);
}

.log-line-num {
    color: #52525b;
    user-select: none;
    min-width: 38px;
    text-align: right;
    font-size: 0.74rem;
}

.log-line-content {
    flex: 1;
}

/* Highlight Classes */
.log-line.log-error .log-line-content {
    color: #f87171;
}

.log-line.log-warn .log-line-content {
    color: #facc15;
}

.log-line.log-success .log-line-content {
    color: #4ade80;
}

.log-line.log-info .log-line-content {
    color: #60a5fa;
}

/* Console Status Footer */
.logs-footer-bar {
    background: #18181b;
    border-top: 1px solid #27272a;
    padding: 0.5rem 1rem;
    font-size: 0.74rem;
    color: #a1a1aa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logs-footer-meta {
    display: flex;
    gap: 1rem;
}

