/* Global Stylesheet - SwarmOps */

body {
    font-family: 'Inter', 'Arial', sans-serif;
    color: #1E293B;
    background-color: #F8FAFC !important;
}

.text-primary {
    color: #031751 !important;
}

.bg-primary {
    background-color: #031751 !important;
}

.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.extra-small {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

/* Custom cards styling */
.card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.025);
    background-color: #FFFFFF;
}

/* Sidebar configuration */
#sidebar-wrapper .list-group-item {
    transition: all 0.2s ease;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #FFFFFF !important;
}

#sidebar-wrapper .list-group-item.active-nav {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-left: 4px solid #FB8C00 !important;
    color: #FFFFFF !important;
}

/* Form inputs styling */
.form-control:focus {
    border-color: #031751;
    box-shadow: 0 0 0 0.25rem rgba(3, 23, 81, 0.1);
}

/* Responsive grid col-xl-2.4 */
@media (min-width: 1200px) {
    .col-xl-2\.4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Cluster Explorer */
.explorer-search {
    min-width: 260px;
}

.explorer-tree {
    overflow-x: auto;
}

.explorer-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.45rem 1rem 0.45rem calc(1rem + (var(--depth) * 1.35rem));
    border-top: 1px solid #E2E8F0;
    white-space: nowrap;
}

.explorer-row:hover {
    background-color: #F8FAFC;
}

.explorer-toggle {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    background: #FFFFFF;
    color: #031751;
    font-size: 0.8rem;
    line-height: 1;
}

.explorer-health {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 999px;
    background-color: #94A3B8;
}

.explorer-health-success {
    background-color: #16A34A;
}

.explorer-health-warning {
    background-color: #F59E0B;
}

.explorer-health-danger {
    background-color: #DC2626;
}

.explorer-type {
    min-width: 74px;
    background-color: #E2E8F0;
    color: #334155;
    text-transform: uppercase;
}

.explorer-label {
    color: #1E293B;
    font-weight: 600;
}

.explorer-status {
    background-color: #EFF6FF;
    color: #1D4ED8;
    font-weight: 600;
}

.explorer-meta {
    display: inline-flex;
    gap: 0.75rem;
    color: #64748B;
    font-size: 0.8rem;
}

@media (max-width: 767.98px) {
    .explorer-search {
        min-width: 100%;
    }

    .explorer-meta {
        display: none;
    }
}

/* Docker Events */
.events-toolbar {
    display: grid;
    grid-template-columns: 150px 130px 120px minmax(180px, 1fr) 90px auto auto;
    gap: 0.5rem;
    align-items: center;
    min-width: min(100%, 980px);
}

.events-stream-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: #F59E0B;
}

.events-stream-dot.connected {
    background-color: #16A34A;
}

.events-stream-dot.connecting {
    background-color: #F59E0B;
}

.events-stream-dot.error {
    background-color: #DC2626;
}

.events-type-badge {
    min-width: 76px;
    background-color: #E2E8F0;
    color: #334155;
    text-transform: uppercase;
}

@media (max-width: 1199.98px) {
    .events-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .events-toolbar {
        grid-template-columns: 1fr;
    }
}

/* Stack Templates */
.template-card {
    border-radius: 8px;
}

.template-compose-preview {
    min-height: 420px;
    max-height: 520px;
    overflow: auto;
    font-size: 0.78rem;
    white-space: pre;
}
