WebScrapper-AI / static /style.css
Ramasani's picture
Add frontend UI with static files and serve index route
10032c3
Raw History Blame Contribute Delete
4.09 kB
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #0f0f23;
color: #e4e4ef;
min-height: 100vh;
line-height: 1.6;
}
header {
text-align: center;
padding: 2rem 1rem;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
header h1 {
font-size: 2.5rem;
}
header p {
opacity: 0.8;
}
nav.tabs {
display: flex;
justify-content: center;
gap: 0.5rem;
padding: 1rem;
background: #1a1a2e;
flex-wrap: wrap;
}
.tab-btn {
padding: 0.75rem 1.5rem;
background: #16213e;
color: #e4e4ef;
border: 1px solid #333;
cursor: pointer;
border-radius: 4px;
transition: all 0.2s;
}
.tab-btn:hover {
background: #667eea;
}
.tab-btn.active {
background: #667eea;
border-color: #667eea;
}
main {
max-width: 1000px;
margin: 0 auto;
padding: 2rem 1rem;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
h2 {
margin-bottom: 1rem;
color: #667eea;
}
form, .form-row {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 1rem;
}
.form-row {
flex-direction: row;
}
.form-row input {
flex: 1;
}
textarea, input, select, button {
padding: 0.75rem;
background: #16213e;
border: 1px solid #333;
color: #e4e4ef;
border-radius: 4px;
font: inherit;
}
textarea {
resize: vertical;
min-height: 100px;
}
button {
background: #667eea;
color: white;
cursor: pointer;
border: none;
font-weight: 500;
transition: background 0.2s;
}
button:hover {
background: #5568d3;
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.result {
background: #16213e;
padding: 1rem;
border-radius: 4px;
margin-top: 1rem;
white-space: pre-wrap;
word-break: break-all;
}
.filters {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
}
.filters select {
flex: 1;
max-width: 200px;
}
table {
width: 100%;
border-collapse: collapse;
background: #16213e;
border-radius: 4px;
overflow: hidden;
}
th, td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid #333;
}
th {
background: #1a1a2e;
font-weight: 500;
}
tr:hover {
background: #1a1a2e;
}
.category {
display: inline-block;
padding: 0.25rem 0.5rem;
border-radius: 3px;
font-size: 0.85rem;
}
.category.news { background: #3498db; }
.category.blog { background: #2ecc71; }
.category.product { background: #e74c3c; }
.category.documentation { background: #9b59b6; }
.category.forum { background: #f39c12; }
.category.social { background: #1abc9c; }
.category.landing { background: #e67e22; }
.category.ecommerce { background: #c0392b; }
.category.article { background: #16a085; }
.category.other { background: #7f8c8d; }
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
}
.stat-card {
background: #16213e;
padding: 1.5rem;
border-radius: 8px;
text-align: center;
}
.stat-card .value {
font-size: 2rem;
font-weight: bold;
color: #667eea;
}
.stat-card .label {
font-size: 0.9rem;
opacity: 0.7;
}
.modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #16213e;
padding: 2rem;
border-radius: 8px;
max-width: 800px;
max-height: 80vh;
overflow: auto;
z-index: 100;
border: 1px solid #333;
}
.modal.hidden {
display: none;
}
.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.7);
z-index: 50;
}
.close-btn {
position: absolute;
top: 0.5rem;
right: 0.5rem;
background: transparent;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #e4e4ef;
}
.model-actions {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}
.error {
color: #e74c3c;
}
.success {
color: #2ecc71;
}