ativa-ia/frontend/styles.css

1016 lines
16 KiB
CSS

:root{
font-family:Arial,Helvetica,sans-serif;
color:#173247;
background:#f5f7f8;
font-synthesis:none;
text-rendering:optimizeLegibility;
--navy:#112b3c;
--blue:#176b87;
--teal:#15a18c;
--muted:#758794;
--line:#e3e9ec;
--panel:#fff;
--green:#188668;
--red:#bd5c52;
--amber:#a87821
}
*{
box-sizing:border-box
}
body{
margin:0;
min-width:320px;
min-height:100vh
}
button,textarea{
font:inherit
}
button{
cursor:pointer
}
.shell{
min-height:100vh
}
.sidebar{
position:fixed;
inset:0 auto 0 0;
width:250px;
background:var(--navy);
color:#fff;
padding:25px 17px 18px;
display:flex;
flex-direction:column;
z-index:5
}
.brand{
display:flex;
align-items:center;
gap:11px;
color:#fff;
text-decoration:none;
padding:2px 9px 36px
}
.brand-mark,.welcome-mark{
display:grid;
place-items:center;
background:linear-gradient(145deg,#37bda6,#167994);
color:white;
font-family:Arial,Helvetica,sans-serif;
font-weight:800
}
.brand-mark{
width:38px;
height:38px;
border-radius:12px;
font-size:21px
}
.brand strong{
display:block;
font:800 17px Arial,Helvetica,sans-serif;
letter-spacing:.08em
}
.brand small{
display:block;
margin-top:3px;
font-size:8px;
letter-spacing:.15em;
color:#a9c0ca
}
.nav-label,.eyebrow{
font-size:10px;
font-weight:700;
letter-spacing:.15em;
color:#91a7b2
}
.nav-label{
padding:0 12px 11px
}
.nav-list{
display:grid;
gap:6px
}
.nav-item{
border:0;
background:transparent;
color:#b8c8cf;
text-align:left;
padding:12px;
border-radius:9px;
display:flex;
gap:12px;
align-items:center;
font-size:13px
}
.nav-item:hover,.nav-item.active{
background:#204254;
color:white
}
.nav-item.active{
box-shadow:inset 3px 0 #37bda6
}
.nav-icon{
font-size:17px;
width:18px;
text-align:center
}
.sidebar-bottom{
margin-top:auto
}
.privacy-note{
border:1px solid #355363;
background:#18394a;
border-radius:10px;
padding:12px;
display:flex;
gap:9px;
align-items:flex-start;
font-size:11px;
line-height:1.5;
color:#e5f0f2
}
.privacy-note small{
color:#aec2ca
}
.privacy-dot{
flex:0 0 8px;
height:8px;
border-radius:50%;
background:#43c5a9;
margin-top:4px
}
.sidebar-version{
padding:16px 3px 0;
color:#8198a3;
font-size:9px;
letter-spacing:.12em
}
.main-content{
margin-left:250px;
min-height:100vh;
padding:0 38px 20px
}
.topbar{
height:66px;
border-bottom:1px solid var(--line);
display:flex;
align-items:center;
justify-content:space-between
}
.breadcrumb{
display:flex;
gap:11px;
align-items:center;
color:#7e8d96;
font-size:12px
}
.breadcrumb strong{
color:#29465a;
font-weight:600
}
.crumb-separator{
color:#b8c3c8
}
.topbar-right{
display:flex;
align-items:center;
gap:14px
}
.status-indicator{
display:flex;
align-items:center;
gap:7px;
font-size:11px;
color:#6b7d87
}
.status-indicator i{
width:7px;
height:7px;
border-radius:50%;
background:#c5ced2
}
.status-indicator.ok i{
background:var(--green);
box-shadow:0 0 0 3px #e1f2ed
}
.status-indicator.bad i{
background:var(--red);
box-shadow:0 0 0 3px #f7e8e6
}
.icon-button{
border:1px solid var(--line);
background:#fff;
color:#547080;
width:32px;
height:32px;
border-radius:8px;
font-size:18px
}
.view{
display:none;
padding-top:34px
}
.view.active{
display:block
}
.page-heading,.chat-heading{
display:flex;
align-items:flex-end;
justify-content:space-between;
gap:20px;
margin-bottom:31px
}
.eyebrow{
color:#438c90;
margin:0 0 10px
}
h1,h2,h3,p{
margin-top:0
}
h1,h2,h3{
font-family:Arial,Helvetica,sans-serif;
color:#18364a
}
h1{
font-size:28px;
letter-spacing:-.04em;
margin-bottom:8px
}
.subtitle{
font-size:13px;
color:#758691;
margin-bottom:0
}
.primary-button,.secondary-button{
border-radius:8px;
padding:10px 15px;
font-size:12px;
font-weight:600
}
.primary-button{
border:0;
background:#176b87;
color:white;
box-shadow:0 3px 8px #176b8724
}
.primary-button:hover{
background:#125b73
}
.primary-button span{
font-size:15px;
margin-right:6px
}
.secondary-button{
border:1px solid #dce5e9;
background:#fff;
color:#496473
}
.section-block{
margin-bottom:22px
}
.section-heading{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
margin-bottom:12px
}
.section-heading h2{
font-size:15px;
margin:0 0 4px
}
.section-heading p{
font-size:11px;
color:#81909a;
margin:0
}
.updated-at{
font-size:10px;
color:#84939b
}
.service-grid{
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:13px
}
.service-card,.panel{
background:var(--panel);
border:1px solid var(--line);
border-radius:12px
}
.service-card{
padding:16px 17px 13px;
min-width:0
}
.service-card-top{
display:flex;
align-items:center;
justify-content:space-between;
margin-bottom:14px
}
.service-symbol{
width:31px;
height:31px;
border-radius:9px;
display:grid;
place-items:center;
font-size:10px;
font-weight:700
}
.api-symbol{
background:#e8f1f6;
color:#28627d
}
.ollama-symbol{
background:#e6f5f0;
color:#25886e;
font-size:17px
}
.qdrant-symbol{
background:#fff3e7;
color:#b97639;
font-size:17px
}
.pill{
border-radius:20px;
padding:4px 8px;
font-size:9px;
font-weight:700
}
.pill.pending{
background:#eff2f3;
color:#84939a
}
.pill.ok{
background:#e5f4ee;
color:#17815f
}
.pill.bad{
background:#faecea;
color:#b65048
}
.service-card h3{
font-size:13px;
margin:0 0 4px
}
.service-card p{
font-size:10px;
color:#788a94;
margin:0 0 13px
}
.service-foot{
border-top:1px solid #edf1f2;
padding-top:9px;
font-size:10px;
color:#74858e;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis
}
.overview-grid{
display:grid;
grid-template-columns:1.25fr 1fr;
gap:13px;
margin:21px 0 13px
}
.panel{
padding:19px
}
.assistant-promo{
min-height:210px;
display:flex;
justify-content:space-between;
overflow:hidden;
background:linear-gradient(115deg,#fff 58%,#eff8f6)
}
.promo-copy{
max-width:350px;
position:relative;
z-index:1
}
.promo-copy h2{
font-size:20px;
line-height:1.3;
max-width:300px;
margin:0 0 9px;
letter-spacing:-.03em
}
.promo-copy>p:not(.eyebrow){
font-size:11px;
line-height:1.6;
color:#73858f;
max-width:310px;
margin-bottom:15px
}
.text-button{
border:0;
background:transparent;
padding:0;
color:#17758b;
font-size:11px;
font-weight:700
}
.text-button span{
margin-left:5px;
font-size:15px
}
.promo-art{
width:140px;
position:relative;
flex:0 0 140px;
align-self:stretch
}
.orbit{
position:absolute;
border:1px solid #b5ded5;
border-radius:50%;
transform:rotate(-29deg)
}
.orbit-one{
width:135px;
height:80px;
top:55px;
left:0
}
.orbit-two{
width:105px;
height:120px;
top:35px;
left:16px;
transform:rotate(40deg)
}
.orbit-core{
position:absolute;
left:49px;
top:75px;
width:42px;
height:42px;
display:grid;
place-items:center;
border-radius:14px;
background:linear-gradient(145deg,#2eb39e,#176b87);
color:white;
font:800 20px Arial,Helvetica,sans-serif;
box-shadow:0 9px 20px #176b8735
}
.orbit-node{
position:absolute;
width:9px;
height:9px;
background:#efb75a;
border-radius:50%;
box-shadow:0 0 0 4px #fdf1d9
}
.node-one{
top:49px;
left:18px
}
.node-two{
top:139px;
left:27px;
background:#36b7a3;
box-shadow:0 0 0 4px #e0f5f0
}
.node-three{
top:70px;
right:4px;
background:#528eb0;
box-shadow:0 0 0 4px #e5f0f6
}
.metrics-panel{
min-height:210px
}
.coming-soon{
font-size:8px;
letter-spacing:.1em;
font-weight:700;
color:#9a7942;
background:#faf3e7;
padding:5px 7px;
border-radius:5px
}
.empty-chart{
height:129px;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center
}
.chart-icon{
font-size:19px;
color:#72a8a0;
margin-bottom:5px
}
.empty-chart strong{
font-size:11px;
color:#536c78
}
.empty-chart p{
max-width:260px;
font-size:9px;
line-height:1.5;
color:#84939b;
margin:5px 0 0
}
.roadmap-panel{
display:flex;
align-items:flex-start;
gap:12px;
padding:14px 17px
}
.roadmap-icon{
flex:0 0 28px;
height:28px;
border-radius:8px;
background:#eaf4f1;
color:#248674;
display:grid;
place-items:center
}
.roadmap-panel strong{
font-size:11px
}
.roadmap-panel p{
font-size:10px;
line-height:1.55;
color:#7a8b94;
margin:4px 0 0
}
.chat-heading{
align-items:center;
margin-bottom:20px
}
.chat-heading h1{
margin-bottom:7px
}
.chat-layout{
height:min(650px,calc(100vh - 220px));
min-height:440px;
display:grid;
grid-template-columns:minmax(0,1fr) 260px;
border:1px solid var(--line);
border-radius:13px;
background:#fff;
overflow:hidden
}
.chat-panel{
min-width:0;
display:flex;
flex-direction:column;
border-right:1px solid var(--line)
}
.messages{
flex:1;
min-height:0;
overflow:auto;
padding:24px clamp(18px,5vw,64px);
display:flex;
flex-direction:column;
gap:16px
}
.welcome-card{
margin:auto;
text-align:center;
max-width:490px;
padding:12px 0
}
.welcome-mark{
width:43px;
height:43px;
border-radius:14px;
margin:0 auto 13px;
font-size:21px
}
.welcome-card h2{
font-size:18px;
margin:0 0 7px
}
.welcome-card>p{
font-size:11px;
color:#7b8c96
}
.suggestions{
display:flex;
justify-content:center;
gap:8px;
flex-wrap:wrap;
margin-top:19px
}
.suggestion{
border:1px solid #e2e9eb;
border-radius:20px;
background:#fff;
color:#54707e;
padding:8px 11px;
font-size:10px
}
.suggestion:hover{
border-color:#8cc9bd;
background:#f7fbf9
}
.message{
max-width:min(78%,630px);
padding:11px 14px;
border-radius:12px;
font-size:12px;
line-height:1.65;
white-space:pre-wrap;
overflow-wrap:anywhere
}
.message.user{
align-self:flex-end;
background:#eaf4f5;
color:#1b4b5a;
border-bottom-right-radius:4px
}
.message.assistant{
align-self:flex-start;
background:#f5f7f8;
color:#294452;
border-bottom-left-radius:4px
}
.message.pending{
color:#7b8d95;
font-style:italic
}
.message.error-message{
color:#a5453f;
background:#fbefed
}
.composer{
margin:0 20px 0;
border:1px solid #dce6e8;
border-radius:11px;
padding:10px 11px 8px;
box-shadow:0 5px 18px #163c4b0a
}
.composer:focus-within{
border-color:#81bfb5;
box-shadow:0 0 0 3px #6ab4a520
}
.composer textarea{
width:100%;
resize:none;
max-height:120px;
border:0;
outline:0;
color:#234451;
background:transparent;
font-size:12px;
padding:2px 2px 7px
}
.composer textarea::placeholder{
color:#9aa8ae
}
.composer-bottom{
display:flex;
align-items:center;
justify-content:space-between;
color:#98a5aa;
font-size:9px
}
.send-button{
width:29px;
height:29px;
border:0;
border-radius:8px;
background:#176b87;
color:#fff;
font-size:19px;
line-height:1
}
.send-button:disabled{
background:#a9bbc1;
cursor:wait
}
.chat-disclaimer{
text-align:center;
color:#98a5aa;
font-size:9px;
margin:9px 12px 12px
}
.sources-panel{
padding:19px 15px;
overflow:auto
}
.sources-title{
display:flex;
align-items:center;
gap:9px;
padding-bottom:14px;
border-bottom:1px solid #edf0f1
}
.source-icon{
width:29px;
height:29px;
border-radius:8px;
display:grid;
place-items:center;
background:#eaf4f1;
color:#248674
}
.sources-title h2{
font-size:12px;
margin:0 0 3px
}
.sources-title p{
font-size:9px;
color:#8a999f;
margin:0
}
.sources-empty{
min-height:190px;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
color:#9aa7ac
}
.sources-empty span{
font-size:27px;
color:#b1c1c4
}
.sources-empty p{
font-size:10px;
line-height:1.6;
max-width:175px
}
.sources-list{
display:grid;
gap:10px;
padding-top:13px
}
.source-card{
border:1px solid #e7edef;
border-radius:8px;
padding:10px
}
.source-name{
font-size:10px;
color:#375968;
line-height:1.45;
overflow-wrap:anywhere;
margin-bottom:9px
}
.score-row{
display:flex;
align-items:center;
gap:7px;
color:#82939a;
font-size:9px
}
.score-track{
height:5px;
border-radius:4px;
background:#edf1f2;
overflow:hidden;
flex:1
}
.score-fill{
height:100%;
border-radius:4px;
background:linear-gradient(90deg,#43bea5,#2480a0)
}
.page-footer{
display:flex;
justify-content:space-between;
padding:20px 2px 0;
color:#9aa7ad;
font-size:9px
}
.mobile-brand{
display:none
}
.sr-only{
position:absolute;
width:1px;
height:1px;
padding:0;
margin:-1px;
overflow:hidden;
clip:rect(0,0,0,0);
white-space:nowrap;
border:0
}
@media(max-width:1100px){
.main-content{
padding:0 24px 18px
}
.overview-grid{
grid-template-columns:1fr
}
.assistant-promo{
min-height:190px
}
.metrics-panel{
min-height:190px
}
.empty-chart{
height:110px
}
.chat-layout{
grid-template-columns:minmax(0,1fr) 220px
}
}
@media(max-width:760px){
.sidebar{
width:64px;
padding:18px 8px
}
.brand{
padding:0 5px 28px
}
.brand>span:not(.brand-mark),.nav-label,.nav-item:not(.active)::after,.nav-item{
font-size:0
}
.nav-item{
justify-content:center;
padding:12px 5px
}
.nav-icon{
font-size:18px
}
.sidebar .nav-item.active{
font-size:0
}
.privacy-note{
justify-content:center;
padding:10px 5px
}
.privacy-note span:not(.privacy-dot),.sidebar-version{
display:none
}
.main-content{
margin-left:64px;
padding:0 16px 16px
}
.topbar{
height:58px
}
.breadcrumb{
display:none
}
.mobile-brand{
display:flex;
align-items:center;
gap:8px;
font-size:12px
}
.mobile-brand .brand-mark{
width:29px;
height:29px;
border-radius:9px;
font-size:16px
}
.service-grid{
grid-template-columns:1fr
}
.service-card{
padding:13px
}
.service-card-top{
margin-bottom:9px
}
.service-card p{
margin-bottom:8px
}
.page-heading{
align-items:flex-start;
flex-direction:column
}
.page-heading .primary-button{
align-self:flex-start
}
.overview-grid{
gap:10px
}
.promo-art{
transform:scale(.78);
transform-origin:right center;
margin-right:-15px
}
.assistant-promo{
min-height:205px
}
.panel{
padding:15px
}
.page-footer{
gap:10px;
line-height:1.5
}
.chat-heading{
align-items:flex-start
}
.chat-heading .secondary-button{
font-size:10px;
padding:8px
}
.chat-layout{
height:calc(100vh - 172px);
min-height:490px;
display:flex;
flex-direction:column
}
.chat-panel{
border-right:0;
min-height:0;
flex:1
}
.messages{
padding:17px 12px
}
.message{
max-width:92%
}
.sources-panel{
flex:0 0 auto;
max-height:135px;
border-top:1px solid var(--line);
padding:10px 13px
}
.sources-title{
padding-bottom:8px
}
.sources-empty{
min-height:48px
}
.sources-empty span{
display:none
}
.sources-empty p{
max-width:none;
margin:8px 0;
font-size:9px
}
.sources-list{
grid-template-columns:repeat(2,minmax(0,1fr));
padding-top:8px
}
.source-card{
padding:8px
}
.composer{
margin:0 10px
}
.chat-disclaimer{
font-size:8px
}
}
@media(max-width:430px){
.main-content{
padding-inline:11px
}
.topbar-right{
gap:8px
}
.status-indicator{
font-size:9px
}
.assistant-promo{
padding:14px;
min-height:197px
}
.promo-copy h2{
font-size:17px;
max-width:220px
}
.promo-copy>p:not(.eyebrow){
max-width:215px
}
.promo-art{
position:absolute;
right:8px;
opacity:.55
}
.assistant-promo{
position:relative
}
.chat-heading h1{
font-size:22px
}
.chat-heading .subtitle{
max-width:220px;
line-height:1.5
}
.sources-list{
grid-template-columns:1fr
}
}
@media(prefers-reduced-motion:reduce){
*,*::before,*::after{
scroll-behavior:auto!important;
animation-duration:.01ms!important;
transition-duration:.01ms!important
}
}