webscraping1 / static /styles.css
Gagan0141's picture
Upload 3 files
7998914 verified
:root{
--bg: #f3f6fb;
--card: #ffffff;
--muted: #6b7280;
--accent: #2563eb;
--border: #e6eefc;
}
body {
font-family: Inter, Arial, sans-serif;
background: var(--bg);
margin: 0;
padding: 18px;
color: #0b1220;
}
/* dark mode */
body.dark {
--bg: #0b1220;
--card: #0f1724;
--muted: #9aa6b2;
--accent: #82aaff;
--border: #1e293b;
color: #dbeafe;
}
.topbar{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:14px;
}
h1{ margin:0; font-size:20px; color:var(--accent); }
/* layout */
.main{
display:flex;
gap:18px;
align-items:flex-start;
}
/* cards */
.card{
background:var(--card);
border:1px solid var(--border);
padding:14px;
border-radius:10px;
box-shadow: 0 4px 18px rgba(15,23,42,0.06);
}
.controls{
width:360px;
}
.output{
flex:1;
min-height:200px;
}
/* controls */
select, textarea {
width:100%;
padding:10px;
margin-top:8px;
border-radius:6px;
border:1px solid var(--border);
background: transparent;
color: inherit;
box-sizing:border-box;
}
.row{ display:flex; gap:8px; margin-top:8px; }
.row button, .small-btn{
padding:8px 10px;
border-radius:6px;
border:none;
background:var(--accent);
color:white;
cursor:pointer;
}
#submitBtn{
margin-top:12px;
width:100%;
padding:10px;
border-radius:8px;
background:var(--accent);
color:white;
border:none;
cursor:pointer;
}
/* article cards */
.article-card{
border:1px solid var(--border);
border-radius:8px;
padding:10px;
margin-bottom:14px;
background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.5));
}
body.dark .article-card{
background: linear-gradient(180deg, rgba(16,24,40,0.6), rgba(12,18,30,0.35));
border:1px solid var(--border);
}
.article-title{ font-weight:700; color:var(--accent); margin-bottom:6px; }
.article-url a{ color:var(--accent); font-size:13px; text-decoration:none; }
.article-summary{ margin-top:8px; color:var(--muted); font-size:13px; }
.article-text{ margin-top:10px; max-height:140px; overflow:auto; background:transparent; padding:8px; border-radius:6px; border:1px dashed var(--border); }
.article-stats{ margin-top:8px; color:var(--muted); font-size:13px; }
/* duplicates */
.dup-card{ padding:10px; border-radius:8px; background:rgba(37,99,235,0.06); margin-bottom:10px; }
/* compare */
.compare-box{
background:var(--card);
border:1px solid var(--border);
padding:12px;
max-height:360px;
overflow:auto;
border-radius:6px;
}
.changed{
background: rgba(255,107,107,0.12);
border-left: 4px solid #ff6b6b;
padding:8px;
margin:6px 0;
border-radius:4px;
color: #7f1d1d;
}
.notice { color: #b45309; margin-top:8px; }
/* small responsive tweak */
@media (max-width: 880px){
.main{ flex-direction: column; }
.controls{ width:100%; }
}