/* TogetherCam overrides on top of the Nowa template (vendor/nowa/css/styles.min.css).
   Keep this file small: use the template's classes first and add here only what it lacks. */

/* Brand colour (violet #6C63FF) instead of the template's teal; the template reads it from this variable. */
:root {
    --primary-rgb: 108, 99, 255;
    --primary: rgb(var(--primary-rgb));
}

body {
    font-family: "Poppins", "Segoe UI", sans-serif;
}

/* Sidebar icons are font icons here, not the template's inline SVGs. */
.app-sidebar .side-menu__icon {
    font-size: 1.05rem;
    width: 1.25rem;
    height: auto;
    margin-right: 0.6rem;
    line-height: 1;
    text-align: center;
    color: var(--default-text-color);
}

.app-sidebar .side-menu__item.active .side-menu__icon,
.app-sidebar .side-menu__item:hover .side-menu__icon {
    color: var(--primary);
}

/* The app's logo (D-107): the petal mark and the name in Instrument Sans Bold, navy on light, white on dark. */
@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../vendor/fonts/instrument-sans/InstrumentSans-Bold.ttf") format("truetype");
}

.brand-lockup {
    white-space: nowrap;
    line-height: 2rem;
}

.brand-lockup .brand-mark,
.header-logo img.brand-mark {
    width: 2rem;
    height: 2rem;
    vertical-align: middle;
}

.brand-lockup .brand-name {
    margin-left: 0.5rem;
    font-family: "Instrument Sans", "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: #141833;
    vertical-align: middle;
}

.brand-lockup-dark .brand-name {
    color: #ffffff;
}

.brand-lockup-auth {
    display: inline-block;
}

.brand-lockup-auth .brand-mark {
    width: 2.5rem;
    height: 2.5rem;
}

/* Cards: the header action area wraps on small screens. */
.custom-card .card-header {
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* DataTables in the template's look. */
.admin-table thead th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.admin-table td {
    vertical-align: middle;
}

.dataTables_wrapper .dataTables_filter input {
    min-width: 16rem;
}

.dataTables_wrapper .dataTables_processing {
    background: transparent;
    box-shadow: none;
}

.admin-thumb {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 0.4rem;
    background: var(--light);
}

.admin-thumb-lg {
    width: 100%;
    max-height: 22rem;
    object-fit: contain;
    border-radius: 0.5rem;
    background: var(--light);
}

/* Charts */
.admin-chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* KPI cards keep one height in a row. */
.kpi-card {
    height: calc(100% - 1.5rem);
}

.kpi-card .card-body {
    position: relative;
}

/* Definition lists on detail pages. */
.admin-facts dt {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.admin-facts dd {
    margin-bottom: 0.75rem;
}

.letter-spacing-code {
    letter-spacing: 0.5em;
    font-weight: 600;
}

.scrollToTop {
    cursor: pointer;
}

pre.admin-json {
    max-height: 22rem;
    overflow: auto;
    font-size: 0.75rem;
    background: var(--light);
    border-radius: 0.5rem;
    padding: 0.75rem;
    white-space: pre-wrap;
    word-break: break-all;
}
