rijashahid / style.css
mabdullahsibghatullah123's picture
Upload 12 files
87ab716 verified
:root {
--bg-color: #0f172a;
--text-color: #f8fafc;
--primary-color: #6366f1;
--primary-hover: #4f46e5;
--glass-bg: rgba(255, 255, 255, 0.05);
--glass-border: rgba(255, 255, 255, 0.1);
--spam-color: #ef4444;
--ham-color: #10b981;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Outfit', sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
position: relative;
}
/* Background blob effect */
.background-glob {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100vw;
height: 100vh;
background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
z-index: -1;
}
.container {
width: 100%;
max-width: 600px;
padding: 2rem;
z-index: 1;
}
header {
text-align: center;
margin-bottom: 2rem;
}
header h1 {
font-size: 2.5rem;
font-weight: 600;
margin-bottom: 0.5rem;
background: linear-gradient(to right, #818cf8, #c084fc);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
header p {
color: #94a3b8;
}
.glass {
background: var(--glass-bg);
backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
border-radius: 1.5rem;
padding: 2rem;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.input-group {
margin-bottom: 1.5rem;
}
label {
display: block;
margin-bottom: 0.75rem;
font-size: 0.9rem;
color: #cbd5e1;
}
textarea {
width: 100%;
height: 150px;
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--glass-border);
border-radius: 0.75rem;
padding: 1rem;
color: white;
font-family: inherit;
font-size: 1rem;
resize: none;
transition: border-color 0.3s ease;
}
textarea:focus {
outline: none;
border-color: var(--primary-color);
}
.actions {
display: flex;
justify-content: flex-end;
}
.btn-primary {
background: var(--primary-color);
color: white;
border: none;
padding: 0.75rem 2rem;
border-radius: 0.75rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s, background 0.2s;
position: relative;
overflow: hidden;
}
.btn-primary:hover {
background: var(--primary-hover);
transform: translateY(-2px);
}
.btn-primary:active {
transform: translateY(0);
}
.btn-primary:disabled {
opacity: 0.7;
cursor: not-allowed;
}
.loader {
display: none;
width: 20px;
height: 20px;
border: 2px solid #ffffff;
border-bottom-color: transparent;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation: spin 1s linear infinite;
}
@keyframes spin {
0% {
transform: translate(-50%, -50%) rotate(0deg);
}
100% {
transform: translate(-50%, -50%) rotate(360deg);
}
}
.result-area {
margin-top: 2rem;
animation: fadeIn 0.5s ease;
}
.result-area.hidden {
display: none;
}
.result-card {
text-align: center;
padding: 1.5rem;
border-radius: 1rem;
background: rgba(255, 255, 255, 0.03);
border: 1px solid transparent;
transition: all 0.3s ease;
}
.result-card.spam {
border-color: var(--spam-color);
background: rgba(239, 68, 68, 0.1);
}
.result-card.ham {
border-color: var(--ham-color);
background: rgba(16, 185, 129, 0.1);
}
.icon {
font-size: 2rem;
display: block;
margin-bottom: 0.5rem;
}
footer {
text-align: center;
margin-top: 2rem;
font-size: 0.8rem;
color: #64748b;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}