/* =====================================================
   LOOKUP VISUAL SYSTEM v1
   Premium Blue & White SaaS Interface Layer
   Independent Visual Standardization
===================================================== */


/* =====================================================
   DESIGN TOKENS
===================================================== */

:root {

    --lookup-primary: #0E5AF2;
    --lookup-primary-dark: #0b47c4;
    --lookup-primary-light: #F4F7FF;

    --lookup-success: #28a745;
    --lookup-warning: #f59e0b;
    --lookup-danger: #dc3545;

    --lookup-title: #1A1A1A;
    --lookup-body: #55595d;
    --lookup-muted: #7a869a;

    --lookup-white: #ffffff;
    --lookup-border: #e5eaf2;

    --lookup-radius-lg: 20px;
    --lookup-radius-md: 16px;
    --lookup-radius-sm: 12px;

    --lookup-shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --lookup-shadow-medium: 0 15px 40px rgba(0,0,0,0.08);

}


/* =====================================================
   DASHBOARD WRAPPER
===================================================== */

.lookup-dashboard {
    background: var(--lookup-primary-light);
    padding: 50px;
    border-radius: var(--lookup-radius-lg);
}


/* =====================================================
   TYPOGRAPHY SYSTEM
===================================================== */

.lookup-dashboard h1 {
    font-size: 30px;
    margin-bottom: 20px;
    color: var(--lookup-title);
}

.lookup-dashboard h2 {
    font-size: 24px;
    margin-bottom: 18px;
    color: var(--lookup-title);
}

.lookup-dashboard h3 {
    font-size: 18px;
    margin-bottom: 14px;
    color: var(--lookup-title);
}

.lookup-dashboard p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--lookup-body);
    margin-bottom: 14px;
}

.lookup-highlight {
    font-weight: 600;
    color: var(--lookup-primary);
}

.lookup-muted {
    color: var(--lookup-muted);
}


/* =====================================================
   EXECUTIVE SUMMARY BLOCK
===================================================== */

.lookup-summary-block {
    background: var(--lookup-white);
    padding: 40px;
    border-radius: var(--lookup-radius-lg);
    box-shadow: var(--lookup-shadow-medium);
    margin-bottom: 40px;
    border-top: 4px solid var(--lookup-primary);
}

.lookup-summary-score {
    font-size: 48px;
    font-weight: 700;
    color: var(--lookup-primary);
    margin-bottom: 10px;
}

.lookup-summary-meta {
    font-size: 14px;
    color: var(--lookup-muted);
}


/* =====================================================
   KPI GRID SYSTEM
===================================================== */

.lookup-kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.lookup-kpi-box {
    background: var(--lookup-white);
    padding: 25px;
    border-radius: var(--lookup-radius-md);
    box-shadow: var(--lookup-shadow-soft);
    min-width: 160px;
    transition: transform 0.2s ease;
}

.lookup-kpi-box:hover {
    transform: translateY(-4px);
}

.lookup-kpi-title {
    font-size: 12px;
    color: var(--lookup-muted);
    margin-bottom: 8px;
}

.lookup-kpi-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--lookup-primary);
}


/* =====================================================
   PROGRESS BAR SYSTEM
===================================================== */

.lookup-progress-wrapper {
    width: 100%;
    height: 10px;
    background: #e6ecf7;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 30px;
}

.lookup-progress-bar-modern {
    height: 100%;
    background: linear-gradient(135deg, var(--lookup-primary), #1a73ff);
    transition: width 0.6s ease;
}


/* =====================================================
   TABLE MODERNIZATION
===================================================== */

.lookup-table-modern {
    width: 100%;
    border-collapse: collapse;
    background: var(--lookup-white);
    border-radius: var(--lookup-radius-md);
    overflow: hidden;
    box-shadow: var(--lookup-shadow-soft);
    margin-bottom: 40px;
}

.lookup-table-modern th {
    background: var(--lookup-primary);
    color: var(--lookup-white);
    padding: 14px;
    text-align: left;
    font-size: 13px;
}

.lookup-table-modern td {
    padding: 14px;
    border-bottom: 1px solid var(--lookup-border);
    font-size: 13px;
}

.lookup-table-modern tbody tr:hover {
    background: #f8faff;
}

.lookup-table-modern tr:last-child td {
    border-bottom: none;
}


/* =====================================================
   TAG SYSTEM
===================================================== */

.lookup-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.lookup-tag-success {
    background: rgba(40,167,69,0.1);
    color: #137333;
}

.lookup-tag-warning {
    background: rgba(245,158,11,0.15);
    color: #b45309;
}

.lookup-tag-danger {
    background: rgba(220,53,69,0.1);
    color: #b91c1c;
}

.lookup-tag-neutral {
    background: rgba(14,90,242,0.1);
    color: var(--lookup-primary);
}


/* =====================================================
   ANALYTICAL CARD
===================================================== */

.lookup-analytics-card {
    background: var(--lookup-white);
    padding: 30px;
    border-radius: var(--lookup-radius-md);
    box-shadow: var(--lookup-shadow-soft);
    margin-bottom: 30px;
}


/* =====================================================
   STATUS BLOCK
===================================================== */

.lookup-status-block {
    padding: 20px;
    border-radius: var(--lookup-radius-md);
    background: #f8faff;
    border-left: 4px solid var(--lookup-primary);
    margin-bottom: 30px;
}


/* =====================================================
   ALERT / WARNING BLOCK
===================================================== */

.lookup-alert-warning {
    background: rgba(245,158,11,0.08);
    border-left: 4px solid var(--lookup-warning);
    padding: 20px;
    border-radius: var(--lookup-radius-md);
    margin-bottom: 30px;
}

.lookup-alert-danger {
    background: rgba(220,53,69,0.08);
    border-left: 4px solid var(--lookup-danger);
    padding: 20px;
    border-radius: var(--lookup-radius-md);
    margin-bottom: 30px;
}


/* =====================================================
   TOAST NOTIFICATIONS
===================================================== */

.lookup-toast-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.lookup-toast {
    min-width: 280px;
    max-width: 420px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(135deg, rgba(15,23,42,0.96), rgba(30,41,59,0.94));
    box-shadow: 0 18px 50px rgba(15,23,42,0.28);
    color: #f8fafc;
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity 220ms ease, transform 220ms ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.lookup-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.lookup-toast--success {
    border-left: 4px solid #22c55e;
}

.lookup-toast--error {
    border-left: 4px solid #ef4444;
}

.lookup-toast--info {
    border-left: 4px solid #38bdf8;
}

.lookup-toast-title {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.lookup-toast-message {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(248,250,252,0.86);
}

.lookup-toast-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: rgba(248,250,252,0.12);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.lookup-toast-action:hover {
    background: rgba(248,250,252,0.2);
    transform: translateY(-1px);
}

.lookup-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15,23,42,0.52);
    backdrop-filter: blur(8px);
}

.lookup-confirm-modal {
    width: 100%;
    max-width: 460px;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 30px 80px rgba(15,23,42,0.22);
    border: 1px solid rgba(148,163,184,0.2);
}

.lookup-confirm-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.lookup-confirm-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.lookup-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.lookup-confirm-btn {
    min-width: 120px;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.25);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.lookup-confirm-btn:hover {
    transform: translateY(-1px);
}

.lookup-confirm-btn--secondary {
    background: #ffffff;
    color: #0f172a;
}

.lookup-confirm-btn--primary {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.lookup-password-field {
    position: relative;
}

.lookup-password-field input {
    padding-right: 88px;
}

.lookup-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: auto;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: background 180ms ease, transform 180ms ease;
}

.lookup-password-toggle:hover {
    background: #e2e8f0;
    transform: translateY(-50%) translateY(-1px);
}


/* =====================================================
   SPACING UTILITIES
===================================================== */

.lookup-mb-20 { margin-bottom: 20px; }
.lookup-mb-30 { margin-bottom: 30px; }
.lookup-mb-40 { margin-bottom: 40px; }

.lookup-mt-20 { margin-top: 20px; }
.lookup-mt-30 { margin-top: 30px; }
.lookup-mt-40 { margin-top: 40px; }

.lookup-access-actions {
    display: grid;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.lookup-access-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    
    padding: 14px 16px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
	text-align: left;
}

.lookup-access-action p {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
    flex: 1 1 auto;
}

.lookup-access-action .lookup-btn-primary,
.lookup-access-action .lookup-btn-secondary {
    white-space: nowrap;
    flex: 0 0 auto;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    .lookup-dashboard {
        padding: 25px;
    }

    .lookup-summary-block {
        padding: 25px;
    }

    .lookup-kpi-row {
        flex-direction: column;
    }

}

@media (max-width: 640px) {

    .lookup-toast-stack {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .lookup-toast {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

}
