card2 / static /style.css
d-e-e-k-11's picture
Upload folder using huggingface_hub
08d6be3 verified
:root {
--primary: #6366f1;
--primary-hover: #4f46e5;
--danger: #ef4444;
--success: #10b981;
--bg-dark: #0f172a;
--glass-bg: rgba(255, 255, 255, 0.05);
--glass-border: rgba(255, 255, 255, 0.1);
}
body {
margin: 0;
font-family: 'Inter', system-ui, -apple-system, sans-serif;
background-color: var(--bg-dark);
color: #f8fafc;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-image:
radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
radial-gradient(circle at 100% 100%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
}
.container {
width: 90%;
max-width: 1000px;
background: var(--glass-bg);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
border-radius: 24px;
padding: 2.5rem;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
header {
text-align: center;
margin-bottom: 2.5rem;
}
header h1 {
font-size: 2.5rem;
margin: 0;
background: linear-gradient(to right, #818cf8, #f472b6);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: 800;
}
header p {
color: #94a3b8;
font-size: 1.1rem;
margin-top: 0.5rem;
}
.main-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
}
.card {
background: rgba(255, 255, 255, 0.03);
border-radius: 16px;
padding: 1.5rem;
border: 1px solid var(--glass-border);
}
.card-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1.25rem;
display: flex;
align-items: center;
gap: 0.75rem;
}
.samples-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.sample-item {
background: rgba(255, 255, 255, 0.05);
padding: 1rem;
border-radius: 12px;
cursor: pointer;
transition: all 0.2s;
border: 1px solid transparent;
}
.sample-item:hover {
background: rgba(255, 255, 255, 0.08);
border-color: var(--primary);
transform: translateY(-2px);
}
.sample-item .meta {
display: flex;
justify-content: space-between;
font-size: 0.875rem;
color: #94a3b8;
}
.sample-item .amount {
font-weight: 700;
color: #fff;
font-size: 1rem;
}
.form-group {
margin-bottom: 1rem;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
.input-field {
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--glass-border);
border-radius: 8px;
padding: 0.75rem;
color: white;
width: 100%;
box-sizing: border-box;
}
.input-field:focus {
outline: none;
border-color: var(--primary);
}
.btn {
background: var(--primary);
color: white;
border: none;
padding: 1rem;
border-radius: 12px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
width: 100%;
transition: all 0.2s;
margin-top: 1rem;
}
.btn:hover {
background: var(--primary-hover);
box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}
#result-area {
margin-top: 2rem;
padding: 1.5rem;
border-radius: 16px;
text-align: center;
display: none;
animation: fadeIn 0.3s ease-out;
}
.result-fraud {
background: rgba(239, 68, 68, 0.1);
border: 1px solid var(--danger);
color: #fca5a5;
}
.result-safe {
background: rgba(16, 185, 129, 0.1);
border: 1px solid var(--success);
color: #6ee7b7;
}
.result-title {
font-size: 1.5rem;
font-weight: 800;
margin-bottom: 0.5rem;
}
.result-conf {
font-size: 0.9rem;
opacity: 0.8;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.tabs {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}
.tab {
padding: 0.5rem 1rem;
border-radius: 20px;
cursor: pointer;
background: rgba(255, 255, 255, 0.05);
font-size: 0.875rem;
transition: all 0.2s;
}
.tab.active {
background: var(--primary);
}
/* Scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.2);
}