/* Utilitários e componentes complementares do layout premium CATALLYO */

.card-metric {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.4rem;
    border-radius: 1.2rem;
    background: linear-gradient(145deg, rgba(49, 107, 255, 0.12), rgba(49, 107, 255, 0.04));
    border: 1px solid rgba(49, 107, 255, 0.15);
}

.card-metric .metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(30, 41, 59, 0.7);
}

.card-metric .metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1b2559;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-dot.status-active {
    background-color: #22c55e;
}

.status-dot.status-warning {
    background-color: #f59e0b;
}

.status-dot.status-danger {
    background-color: #ef4444;
}

.table-compact td,
.table-compact th {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
}

.avatar-stack {
    display: inline-flex;
    align-items: center;
}

.avatar-stack .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -10px;
    background-color: rgba(49, 107, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-soft-primary {
    background-color: rgba(49, 107, 255, 0.12);
    color: #2550d9;
}

.badge-soft-success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.badge-soft-warning {
    background-color: rgba(234, 179, 8, 0.18);
    color: #b45309;
}

.badge-soft-danger {
    background-color: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background-color: rgba(15, 23, 42, 0.06);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.chip i {
    font-size: 0.85rem;
}

.list-clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-clean > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.list-clean > li:last-child {
    border-bottom: none;
}

.floating-toolbar {
    border-radius: 999px;
    background: rgba(49, 107, 255, 0.12);
    padding: 0.35rem;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.floating-toolbar .btn {
    border-radius: 999px;
}

.app-hero {
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: linear-gradient(140deg, rgba(49, 107, 255, 0.12), rgba(0, 225, 200, 0.12));
    border: 1px solid rgba(49, 107, 255, 0.1);
}

.app-hero h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.app-hero p {
    margin: 0;
    color: rgba(30, 41, 59, 0.7);
}

html[data-theme="dark"] .card-metric {
    background: linear-gradient(145deg, rgba(49, 107, 255, 0.22), rgba(49, 107, 255, 0.08));
    border-color: rgba(49, 107, 255, 0.25);
}

html[data-theme="dark"] .card-metric .metric-value {
    color: #e2e8f0;
}

html[data-theme="dark"] .list-clean > li {
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .chip {
    background-color: rgba(100, 116, 139, 0.25);
    color: #e2e8f0;
}

/* Telas de autenticação premium */

.auth-shell {
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background: linear-gradient(140deg, rgba(49, 107, 255, 0.12), rgba(0, 0, 0, 0.35));
}

.auth-shell--mestre {
    background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.35), rgba(15, 23, 42, 0.92));
}

.auth-shell--empresa {
    background: radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.28), rgba(15, 23, 42, 0.9));
}

.auth-shell--catalogo {
    background: linear-gradient(160deg, rgba(15, 118, 255, 0.22), rgba(14, 165, 233, 0.18));
}

.auth-wrapper {
    width: 100%;
    max-width: 520px;
}

.auth-card {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 36px 72px rgba(15, 23, 42, 0.25);
    padding: 2.75rem 2.5rem;
}

.auth-card--compact {
    padding: 2.25rem 1.75rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-brand h1 {
    font-weight: 700;
    font-size: 1.65rem;
    margin: 0 0 0.35rem;
}

.auth-brand p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(49, 107, 255, 0.12);
    color: #2a51d9;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.auth-form label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
}

.auth-input-group .input-group-text {
    background: rgba(148, 163, 184, 0.16);
    border: none;
    color: #475569;
}

.auth-input-group .form-control {
    border: none;
    background: rgba(248, 250, 252, 0.9);
    padding: 0.85rem 1rem;
}

.auth-input-group .form-control:focus {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(49, 107, 255, 0.35);
}

.auth-toggle {
    border: none;
    background: rgba(226, 232, 240, 0.6);
    color: #1f2937;
}

.auth-toggle:hover {
    background: rgba(148, 163, 184, 0.3);
}

.auth-link {
    font-weight: 500;
    color: #316bff;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-hint {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-hint a {
    color: #316bff;
    text-decoration: none;
}

.auth-hint a:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 2.25rem 1.75rem;
    }

    .auth-brand {
        flex-direction: column;
        text-align: center;
    }

    .auth-brand-logo {
        width: 64px;
        height: 64px;
    }
}
