/* ==========================================================
   N1MM Dashboard Styles (ex-MiniBook)
   ========================================================== */

/* Container */
.n1mm-wrapper {
    margin: 1rem 0;
}

/* Title */
.n1mm-title {
    margin-bottom: 0.5rem;
}

/* Info box */
.n1mm-info-box {
    margin: 0.5rem 0 1rem 0;
}

.n1mm-info-box table {
    width: 100%;
    border-collapse: collapse;
}

.n1mm-info-box td {
    padding: 0.15rem 0;
}

/* Bands grid */
.n1mm-bands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.35rem;
    margin: 0.5rem 0 0.75rem 0;
}

.n1mm-bands .band {
    text-align: center;
    padding: 0.35rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid currentColor;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Active band */
.n1mm-bands .band.active {
    font-weight: 600;
    box-shadow: 0 0 0 2px currentColor;
}

/* Status */
.n1mm-status {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
    text-align: center;
}

/* LIVE */
.n1mm-status.is-live {
    color: #ff2b2b;
    text-shadow:
        0 0 6px rgba(255, 43, 43, 0.9),
        0 0 14px rgba(255, 43, 43, 0.7);
    font-weight: 700;
}

/* OFFAIR */
.n1mm-status.is-offair {
    text-shadow: none;
    font-weight: inherit;
}

/* Force bigger status */
.n1mm-wrapper .n1mm-status.is-live,
.n1mm-wrapper .n1mm-status.is-offair {
    font-size: 1rem !important;
    font-weight: 800;
}

/* ==========================================================
   Style variants
   ========================================================== */

.n1mm-wrapper.n1mm-style-horizontal {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas:
        "title  title"
        "info   bands"
        "status status";
    column-gap: 1rem;
    row-gap: 0.5rem;
}

.n1mm-wrapper.n1mm-style-horizontal .n1mm-title {
    grid-area: title;
    margin-bottom: 0.25rem;
}

.n1mm-wrapper.n1mm-style-horizontal .n1mm-info-box {
    grid-area: info;
    margin-bottom: 0;
}

.n1mm-wrapper.n1mm-style-horizontal .n1mm-bands {
    grid-area: bands;
    align-self: flex-start;
}

.n1mm-wrapper.n1mm-style-horizontal .n1mm-status {
    grid-area: status;
}

@media (max-width: 640px) {
    .n1mm-wrapper.n1mm-style-horizontal {
        display: block;
    }
}

/* Compact */
.n1mm-wrapper.n1mm-style-compact .n1mm-info-box {
    margin: 0.25rem 0 0.5rem 0;
    font-weight: 600;
}

.n1mm-wrapper.n1mm-style-compact .n1mm-info-box td {
    padding: 0.05rem 0;
    font-size: 0.5rem;
}

.n1mm-wrapper.n1mm-style-compact .n1mm-bands {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 0.25rem;
}

.n1mm-wrapper.n1mm-style-compact .n1mm-bands .band {
    padding: 0.05rem;
    font-size: 0.6rem;
    line-height: 1.1;
}

.n1mm-wrapper.n1mm-style-compact .n1mm-bands .band.active {
    transform: none;
    box-shadow: 0 0 4px rgba(42, 140, 255, 0.6);
}

/* Cards */
.n1mm-wrapper.n1mm-style-cards {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid currentColor;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Dark */
.n1mm-wrapper.n1mm-style-dark {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(0,0,0,0.75);
    color: #f5f5f5;
}

.n1mm-wrapper.n1mm-style-dark .n1mm-bands .band {
    border-color: rgba(255,255,255,0.7);
}

.n1mm-wrapper.n1mm-style-dark .n1mm-bands .band.active {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
}

/* Text only */
.n1mm-wrapper.n1mm-style-text .n1mm-bands,
.n1mm-wrapper.n1mm-style-text-compact .n1mm-bands {
    display: none !important;
}

.n1mm-wrapper.n1mm-style-text-compact {
    font-size: 0.65rem;
    font-weight: 600;
}

/* Neutral highlight */
.n1mm-bands .band.active {
    background-color: #2a8cff;
    color: #fff;
    border-color: #1f6bd1;
    box-shadow: 0 0 6px rgba(42, 140, 255, 0.7);
    transform: scale(1.03);
    transition: all 0.15s ease-in-out;
}

/* Card-text */
.n1mm-wrapper.n1mm-style-card-text,
.n1mm-wrapper.n1mm-style-card-text-compact {
    border-radius: 0.75rem;
    border: 1px solid currentColor;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

.n1mm-wrapper.n1mm-style-card-text {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
}

.n1mm-wrapper.n1mm-style-card-text-compact {
    padding: 0.5rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
}

.n1mm-wrapper.n1mm-style-card-text .n1mm-bands,
.n1mm-wrapper.n1mm-style-card-text-compact .n1mm-bands {
    display: none !important;
}
