html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.inventory-card {
    transition: all .2s ease-in-out;
    cursor: pointer;
}

    .inventory-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.15) !important;
    }

/* Inventory Cards */
.inventory-card {
    transition: transform .20s ease, box-shadow .20s ease;
    cursor: pointer;
    border: none;
}

    .inventory-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 2rem rgba(0,0,0,.18) !important;
    }

.spool-actions .btn,
.spool-actions form {
    height: 32px;
}

.spool-actions form {
    display: inline-flex;
}

    .spool-actions form .btn {
        border-radius: 0;
        margin-left: -1px;
    }

.spool-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* ── Icon action buttons ── */
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: transparent;
    color: #495057;
    font-size: 15px;
    transition: background .15s, color .15s, border-color .15s;
}

    .btn-icon:hover {
        background: #f8f9fa;
        border-color: #adb5bd;
        color: #212529;
    }

.btn-icon-danger:hover {
    background: #fff5f5;
    border-color: #f5c2c7;
    color: #dc3545;
}

/* ── Color swatches ── */
.color-swatch {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,.12);
    flex-shrink: 0;
}

.color-swatch-sm {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.12);
}

.tmf-dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

    .tmf-dashboard-hero h1 {
        margin: 0;
        font-weight: 700;
    }

    .tmf-dashboard-hero p {
        margin: .25rem 0 0;
        color: #6c757d;
    }

.tmf-stat-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.04);
}

    .tmf-stat-card span {
        display: block;
        color: #6c757d;
        font-size: .9rem;
        margin-bottom: .35rem;
    }

    .tmf-stat-card strong {
        font-size: 2rem;
        line-height: 1;
    }

.tmf-stat-warning {
    border-color: #ffc107;
    background: #fff9e6;
}

.tmf-landing {
    text-align: center;
    padding: 4rem 1rem 3rem;
}

.tmf-landing-content {
    max-width: 720px;
    margin: 0 auto;
}

.tmf-landing-logo {
    max-height: 120px;
    margin-bottom: 1.5rem;
}

.tmf-landing h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.tmf-landing p {
    font-size: 1.15rem;
    color: #5f6b76;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.tmf-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.tmf-feature-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.04);
}

    .tmf-feature-card i {
        font-size: 1.8rem;
        color: #0d6efd;
        margin-bottom: .75rem;
        display: inline-block;
    }

    .tmf-feature-card h3 {
        font-size: 1.05rem;
        font-weight: 700;
        margin-bottom: .5rem;
    }

    .tmf-feature-card p {
        color: #6c757d;
        margin: 0;
        line-height: 1.55;
    }
/* ── Home page stat cards ── */
.stat-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    text-align: center;
}

.stat-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #1f2933;
}

.stat-card-warn {
    border-color: #ffc107;
    background: #fffdf0;
}

    .stat-card-warn .stat-value {
        color: #856404;
    }

/* ── Landing hero ── */
.landing-hero {
    text-align: center;
    padding: 3rem 1rem 2.5rem;
}

.landing-logo {
    max-height: 110px;
    margin-bottom: 1.5rem;
}

.landing-tagline {
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 17px;
    color: #444;
    line-height: 1.65;
}

/* ── Feature grid ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 2.5rem;
}

.feature-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
}

.feature-icon {
    font-size: 26px;
    color: #198754;
    margin-bottom: 10px;
    display: block;
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f2933;
}

.feature-body {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    line-height: 1.55;
}

/* ── Changelog ── */
.changelog-release {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.changelog-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.changelog-version {
    font-size: 16px;
    font-weight: 700;
    color: #1f2933;
}

.changelog-date {
    font-size: 13px;
    color: #6c757d;
}

.changelog-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .changelog-items li {
        font-size: 14px;
        color: #444;
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

.badge-new {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    background: #d1e7dd;
    color: #0a3622;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-improved {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    background: #cfe2ff;
    color: #084298;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-fixed {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    background: #fff3cd;
    color: #664d03;
    white-space: nowrap;
    flex-shrink: 0;
}
