Spaces:
Running

Rahilkk07's picture
Upload 14 files
74227be verified
Raw History Blame Contribute Delete
6.58 kB
:root {
--bg-color: #0f172a;
--text-primary: #f8fafc;
--text-secondary: #94a3b8;
--accent: #3b82f6;
--accent-hover: #2563eb;
--card-bg: rgba(30, 41, 59, 0.7);
--border-color: rgba(255, 255, 255, 0.1);
--success: #10b981;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Inter', sans-serif;
}
body {
background-color: var(--bg-color);
color: var(--text-primary);
min-height: 100vh;
display: flex;
justify-content: center;
padding: 2rem;
background-image: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.1), transparent 25%);
}
.app-container {
width: 100%;
max-width: 900px;
}
header {
text-align: center;
margin-bottom: 3rem;
animation: fadeInDown 0.8s ease-out;
}
header h1 {
font-size: 3rem;
font-weight: 800;
letter-spacing: -1px;
margin-bottom: 0.5rem;
}
.highlight {
background: linear-gradient(135deg, #3b82f6, #10b981);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
header p {
color: var(--text-secondary);
font-size: 1.1rem;
}
.drop-zone {
background: var(--card-bg);
border: 2px dashed var(--border-color);
border-radius: 1rem;
padding: 4rem 2rem;
text-align: center;
backdrop-filter: blur(10px);
transition: all 0.3s ease;
animation: fadeIn 1s ease-out;
}
.drop-zone.dragover {
border-color: var(--accent);
background: rgba(59, 130, 246, 0.1);
transform: scale(1.02);
}
.upload-icon {
color: var(--accent);
margin-bottom: 1.5rem;
transition: transform 0.3s ease;
}
.drop-zone:hover .upload-icon {
transform: translateY(-5px);
}
.drop-zone h2 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}
.drop-zone p {
color: var(--text-secondary);
margin: 1rem 0;
}
.file-hint {
font-size: 0.85rem;
margin-top: 1.5rem !important;
}
.lang-selector {
margin-top: 1.5rem;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
}
.lang-selector label {
font-size: 0.9rem;
color: var(--text-secondary);
}
.lang-select {
background-color: rgba(15, 23, 42, 0.8);
color: var(--text-primary);
border: 1px solid var(--border-color);
border-radius: 0.5rem;
padding: 0.5rem 1rem;
font-size: 1rem;
outline: none;
cursor: pointer;
transition: all 0.2s;
width: 200px;
}
.lang-select:focus {
border-color: var(--accent);
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.lang-select option {
background-color: var(--bg-color);
color: var(--text-primary);
}
.btn-primary, .btn-secondary {
padding: 0.75rem 2rem;
border-radius: 0.5rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
border: none;
font-size: 1rem;
}
.btn-primary {
background-color: var(--accent);
color: white;
box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
background-color: var(--accent-hover);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
.btn-secondary {
background: transparent;
border: 1px solid var(--border-color);
color: var(--text-primary);
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.05);
border-color: var(--text-secondary);
}
/* Processing Section */
.processing-section {
text-align: center;
padding: 4rem 2rem;
background: var(--card-bg);
border-radius: 1rem;
backdrop-filter: blur(10px);
border: 1px solid var(--border-color);
}
.loader {
margin-bottom: 2rem;
}
.spinner {
width: 50px;
height: 50px;
border: 4px solid rgba(255, 255, 255, 0.1);
border-left-color: var(--accent);
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto;
}
.progress-bar {
width: 100%;
height: 8px;
background: rgba(0, 0, 0, 0.3);
border-radius: 4px;
margin-top: 2rem;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #3b82f6, #10b981);
width: 0%;
transition: width 0.3s ease;
}
/* Results Section */
.results-section {
animation: fadeIn 0.5s ease-out;
}
.results-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.transcription-list {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.transcription-card {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 1rem;
padding: 1.5rem;
transition: transform 0.2s, box-shadow 0.2s;
backdrop-filter: blur(10px);
}
.transcription-card:hover {
transform: translateY(-2px);
border-color: rgba(255, 255, 255, 0.2);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
padding-bottom: 0.75rem;
}
.file-name {
font-weight: 600;
display: flex;
align-items: center;
gap: 0.5rem;
}
.file-name::before {
content: '';
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--success);
}
.meta-info {
display: flex;
align-items: center;
gap: 0.75rem;
}
.lang-badge {
background: rgba(59, 130, 246, 0.15);
color: var(--accent);
padding: 0.2rem 0.6rem;
border-radius: 0.25rem;
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.5px;
}
.duration {
font-size: 0.85rem;
color: var(--text-secondary);
}
.btn-download-single {
background: transparent;
border: none;
color: var(--text-secondary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 0.35rem;
border-radius: 0.35rem;
transition: all 0.2s;
margin-left: 0.25rem;
}
.btn-download-single:hover {
color: var(--accent);
background: rgba(59, 130, 246, 0.15);
}
.transcript-text {
color: var(--text-primary);
line-height: 1.6;
font-size: 0.95rem;
white-space: pre-wrap;
}
.hidden {
display: none !important;
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeInDown {
from { opacity: 0; transform: translateY(-20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
100% { transform: rotate(360deg); }
}