/* Full-screen SaaS-style client portal */

.wlcc-client-portal-root{
    position:fixed;
    inset:0;
    z-index:9999;
    background:#02030a;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding:40px 20px;
    box-sizing:border-box;
    overflow:auto;
}

/* Hide overflowing theme content behind the app */
body{
    background:#02030a;
}

/* Card container */
.wlcc-portal-shell{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    color:#f5f7fb;
    background:#050712;
    padding:24px;
    border-radius:18px;
    box-shadow:0 22px 60px rgba(0,0,0,0.85);
    width:100%;
    max-width:1160px;
    box-sizing:border-box;
    border:1px solid #111528;
}

/* Header */
.wlcc-portal-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:22px;
}
.wlcc-portal-title{
    font-size:20px;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.wlcc-portal-subtitle{
    font-size:13px;
    color:#9ba3ba;
}
.wlcc-logo-circle{
    width:40px;height:40px;border-radius:999px;
    background:radial-gradient(circle at 30% 20%,#1e90ff,#0b1b40);
    display:flex;align-items:center;justify-content:center;
    font-weight:700;font-size:16px;
}

/* Tabs */
.wlcc-tabs-row{
    display:flex;
    gap:8px;
    margin-bottom:16px;
    flex-wrap:wrap;
}
.wlcc-tab-pill{
    padding:7px 13px;
    border-radius:999px;
    background:#111522;
    color:#9ba3ba;
    font-size:13px;
    cursor:pointer;
    border:1px solid transparent;
}
.wlcc-tab-active{
    background:#1e90ff;
    color:#fff;
    border-color:#3aa3ff;
    box-shadow:0 0 0 1px rgba(62,160,255,0.6);
}

/* Layout */
.wlcc-tab-content{display:none;}
.wlcc-tab-content-active{display:block;}

.wlcc-grid-2{
    display:grid;
    grid-template-columns:1.3fr 1fr;
    gap:18px;
}

/* Cards */
.wlcc-card{
    background:#090d1a;
    border-radius:14px;
    padding:16px 18px;
    border:1px solid #171c2c;
    margin-bottom:12px;
}
.wlcc-card h3{
    margin-top:0;
    font-size:15px;
    color:#e3e7ff;
}

/* Metrics */
.wlcc-metric-row{
    display:flex;
    gap:12px;
    margin-top:8px;
}
.wlcc-metric{
    flex:1;
    background:#0b1020;
    padding:10px 12px;
    border-radius:10px;
    border:1px solid #151a2b;
}
.wlcc-metric-label{
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.09em;
    color:#7f8bb0;
}
.wlcc-metric-value{
    margin-top:4px;
    font-size:18px;
    font-weight:600;
    color:#1e90ff;
}

/* Lists */
.wlcc-list{
    list-style:none;
    margin:0;
    padding:0;
}
.wlcc-list li{
    border-bottom:1px solid #151a2b;
    padding:8px 4px;
    display:flex;
    justify-content:space-between;
    font-size:13px;
}
.wlcc-list li:last-child{border-bottom:none;}

/* Buttons + Inputs */
.wlcc-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 14px;
    border-radius:999px;
    border:none;
    background:#1e90ff;
    color:#fff;
    font-size:13px;
    cursor:pointer;
}
.wlcc-input,
.wlcc-textarea,
.wlcc-file{
    width:100%;
    background:#070b18;
    border-radius:10px;
    border:1px solid #171c2c;
    padding:8px 10px;
    color:#f5f7fb;
    font-size:13px;
    box-sizing:border-box;
}
.wlcc-textarea{min-height:90px;resize:vertical;}

/* Messages */
.wlcc-chat-list{
    max-height:260px;
    overflow-y:auto;
}
.wlcc-chat-item{margin-bottom:8px;font-size:13px;}
.wlcc-chat-label{
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#7f8bb0;
    margin-bottom:2px;
}
.wlcc-chat-bubble-admin{
    background:#10162a;
    border-radius:10px;
    padding:8px 10px;
    border:1px solid #1e90ff;
}
.wlcc-chat-bubble-client{
    background:#0a0f20;
    border-radius:10px;
    padding:8px 10px;
    border:1px solid #171c2c;
}

/* Mobile */
@media(max-width:900px){
    .wlcc-client-portal-root{
        padding:20px 10px;
        align-items:stretch;
    }
    .wlcc-grid-2{grid-template-columns:1fr;}
    .wlcc-portal-shell{padding:16px;}
}
