﻿/* Tag Simulation */

.tsim-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-h) - var(--footer-h));
    padding: 20px 24px;
    gap: 16px;
    overflow-y: auto;
    background: var(--c-bg);
    scrollbar-width: thin;
    scrollbar-color: var(--c-border) transparent;
}

.tsim-stats {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.tsim-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--c-bg-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    min-width: 100px;
}

.tsim-stat__val {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 500;
    color: var(--c-text);
    line-height: 1;
}

.tsim-stat__val--warn {
    color: var(--c-amber);
}

.tsim-stat__label {
    font-size: 11px;
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* bar */
.tsim-addbar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--c-bg-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    flex-shrink: 0;
}

.tsim-addbar__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 120px;
}

.tsim-addbar__field--grow {
    flex: 1;
}

.tsim-addbar__field--check {
    justify-content: flex-end;
    padding-bottom: 8px;
    min-width: auto;
}

.tsim-addbar__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-text-dim);
}

.tsim-add-btn {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #bfdbfe;
    background: var(--c-blue-bg);
    color: var(--c-accent);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s, border-color 0.12s;
    height: 36px;
}

    .tsim-add-btn:hover {
        background: #dbeafe;
        border-color: #93c5fd;
    }

/* grid */
.tsim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

/* Tag card  */
.tsim-card {
    background: var(--c-bg-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .tsim-card:hover {
        border-color: var(--c-border-md);
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }

.tsim-card--lowbat {
    border-left: 20px solid #fde68a
}

.tsim-card--paused {
    opacity: 0.7;
}

.tsim-card__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.tsim-card__num {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 500;
    color: var(--c-text);
    letter-spacing: 0.03em;
}

.tsim-card__type {
    font-size: 11px;
    color: var(--c-text-muted);
    background: var(--c-bg-3);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    padding: 1px 7px;
    font-weight: 500;
}

.tsim-card__pills {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tsim-card__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-top: 1px solid var(--c-border);
    padding-top: 8px;
}

.tsim-card__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.tsim-card__meta-label {
    font-size: 11px;
    color: var(--c-text-dim);
}

.tsim-card__meta-val {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--c-text-muted);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.tsim-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    border-top: 1px solid var(--c-border);
    padding-top: 10px;
}

/* Tag action buttons */
.tact {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border-md);
    background: var(--c-bg-3);
    color: var(--c-text-muted);
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
    white-space: nowrap;
}

    .tact:hover {
        background: var(--c-bg);
        color: var(--c-text);
        border-color: var(--c-border-md);
    }

.tact--ok {
    background: var(--c-ok-bg);
    border-color: var(--c-ok-border);
    color: var(--c-ok);
}

    .tact--ok:hover {
        background: #dcfce7;
    }

.tact--danger {
    background: var(--c-red-bg);
    border-color: #fecaca;
    color: var(--c-red);
}

    .tact--danger:hover {
        background: #fee2e2;
    }

.tact--warn {
    background: var(--c-amber-bg);
    border-color: #fde68a;
    color: var(--c-amber);
}

    .tact--warn:hover {
        background: #fef3c7;
    }

/* Notifications - FIX THIS MITCH*/
.notif {
    font-family: var(--font-ui);
    font-size: 13px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notif--error {
    background: var(--c-bg-2);
    border: 1px solid #fecaca;
    color: var(--c-red);
}

.notif--success {
    background: var(--c-bg-2);
    border: 1px solid #bbf7d0;
    color: var(--c-green);
}

/* Empty state */
.tsim-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: 8px;
    color: var(--c-text-dim);
}

.tsim-empty__icon {
    font-size: 28px;
}

.tsim-empty__text {
    font-size: 15px;
    font-weight: 500;
    color: var(--c-text-muted);
}

.tsim-empty__sub {
    font-size: 13px;
}
