voice2text/style.css

489 lines
No EOL
8.7 KiB
CSS
Executable file

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Montserrat', sans-serif;
background: #000000;
min-height: 100vh;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
}
input, button, textarea, select, label {
font-family: 'Montserrat', sans-serif;
}
.app-container {
background: #1a1a1a;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(255, 196, 7, 0.2);
border: 1px solid #333;
padding: 40px;
max-width: 800px;
width: 100%;
animation: fadeIn 0.5s ease-in;
}
.dev-mode-banner {
background: #ff9800;
color: #000;
padding: 10px 20px;
border-radius: 8px;
text-align: center;
font-weight: 600;
font-size: 14px;
margin-bottom: 20px;
border: 2px solid #f57c00;
}
.user-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background: #0a0a0a;
border-radius: 12px;
border: 1px solid #333;
margin-bottom: 25px;
}
.user-info {
display: flex;
flex-direction: column;
gap: 4px;
}
.user-name {
color: #FFC407;
font-weight: 600;
font-size: 15px;
}
.user-email {
color: #999;
font-size: 13px;
}
.logout-btn {
padding: 8px 20px;
background: transparent;
color: #FFC407;
border: 2px solid #FFC407;
border-radius: 20px;
text-decoration: none;
font-weight: 600;
font-size: 14px;
transition: all 0.3s ease;
}
.logout-btn:hover {
background: #FFC407;
color: #000;
transform: translateY(-1px);
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.logo {
width: 400px;
height: auto;
display: block;
margin: 0 auto 30px;
filter: invert(1) brightness(2);
}
.initial-instruction {
text-align: center;
font-size: 16px;
color: #999;
margin-bottom: 30px;
font-weight: 400;
line-height: 1.6;
}
.format-selection {
background: #0a0a0a;
padding: 20px;
border-radius: 12px;
margin-bottom: 25px;
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
border: 1px solid #333;
}
.format-selection label {
font-weight: 600;
color: #FFC407;
font-size: 15px;
}
.format-selection select {
padding: 10px 20px;
border: 2px solid #333;
border-radius: 8px;
font-size: 15px;
font-weight: 500;
color: #FFC407;
background: #000;
cursor: pointer;
transition: all 0.3s ease;
min-width: 200px;
}
.format-selection select:hover {
border-color: #FFC407;
}
.format-selection select:focus {
outline: none;
border-color: #FFC407;
box-shadow: 0 0 0 3px rgba(255, 196, 7, 0.2);
}
.translation-section {
background: #0a0a0a;
padding: 20px;
border-radius: 12px;
margin-bottom: 25px;
border: 1px solid #333;
}
.translation-toggle {
margin-bottom: 15px;
}
.toggle-label {
display: flex;
align-items: center;
cursor: pointer;
user-select: none;
}
.toggle-label input[type="checkbox"] {
width: 20px;
height: 20px;
cursor: pointer;
margin-right: 10px;
accent-color: #FFC407;
}
.toggle-text {
color: #FFC407;
font-weight: 600;
font-size: 15px;
}
.language-selector {
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
padding-top: 15px;
border-top: 1px solid #333;
}
.language-selector label {
font-weight: 600;
color: #999;
font-size: 14px;
}
.language-selector select {
padding: 10px 20px;
border: 2px solid #333;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
color: #FFC407;
background: #000;
cursor: pointer;
transition: all 0.3s ease;
min-width: 220px;
}
.language-selector select:hover {
border-color: #FFC407;
}
.language-selector select:focus {
outline: none;
border-color: #FFC407;
box-shadow: 0 0 0 3px rgba(255, 196, 7, 0.2);
}
.file-upload-container {
text-align: center;
margin-bottom: 25px;
}
.file-upload-label {
display: inline-block;
padding: 15px 40px;
cursor: pointer;
background: #FFC407;
color: #000;
border-radius: 50px;
font-weight: 700;
font-size: 16px;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(255, 196, 7, 0.4);
}
.file-upload-label:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 196, 7, 0.6);
background: #ffcd2e;
}
.file-upload-label:active {
transform: translateY(0);
}
.file-upload-label.disabled {
background: #333;
color: #666;
cursor: not-allowed;
box-shadow: none;
}
.chat-area {
min-height: 200px;
max-height: 400px;
border: 2px solid #333;
border-radius: 12px;
overflow-y: auto;
padding: 20px;
background: #0a0a0a;
margin-bottom: 20px;
}
.chat-area:empty {
display: none;
}
.message {
padding: 15px 20px;
margin-bottom: 15px;
border-radius: 12px;
line-height: 1.6;
animation: slideIn 0.3s ease;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateX(-20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.bot-message {
background: rgba(255, 196, 7, 0.1);
border-left: 4px solid #FFC407;
color: #fff;
}
.bot-message a {
color: #FFC407;
font-weight: 600;
text-decoration: none;
border-bottom: 2px solid #FFC407;
transition: all 0.2s ease;
}
.bot-message a:hover {
color: #ffcd2e;
border-bottom-color: #ffcd2e;
}
.download-link {
display: inline-block;
padding: 12px 30px;
background: #FFC407;
color: #000 !important;
text-decoration: none !important;
border-radius: 50px;
font-weight: 700;
font-size: 15px;
transition: all 0.3s ease;
border: none;
cursor: pointer;
box-shadow: 0 4px 15px rgba(255, 196, 7, 0.4);
}
.download-link:hover {
background: #ffcd2e;
color: #000 !important;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 196, 7, 0.6);
text-decoration: none !important;
}
.transcription-section {
margin: 10px 0;
}
.transcription-section h3 {
font-family: 'Montserrat', sans-serif;
font-size: 16px;
font-weight: 600;
}
.transcription-section pre {
background: #000;
padding: 15px;
border-radius: 8px;
border: 1px solid #333;
font-size: 13px;
line-height: 1.6;
max-height: 400px;
overflow-y: auto;
font-family: 'Courier New', monospace;
}
.error-message {
background: rgba(255, 0, 0, 0.1);
border-left: 4px solid #ff3333;
color: #ff6666;
}
.processing-container {
padding: 30px;
text-align: center;
}
.processing-text {
color: #FFC407;
font-weight: 600;
font-size: 18px;
margin-bottom: 20px;
animation: pulseAnimation 2s infinite;
}
@keyframes pulseAnimation {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}
.progress-bar {
width: 100%;
height: 8px;
background: #333;
border-radius: 10px;
overflow: hidden;
position: relative;
}
.progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, #FFC407, #ffcd2e, #FFC407);
background-size: 200% 100%;
border-radius: 10px;
animation: progressAnimation 1.5s ease-in-out infinite;
box-shadow: 0 0 10px rgba(255, 196, 7, 0.5);
}
@keyframes progressAnimation {
0% {
width: 0%;
background-position: 0% 0%;
}
50% {
width: 70%;
background-position: 100% 0%;
}
100% {
width: 100%;
background-position: 200% 0%;
}
}
button {
padding: 12px 30px;
cursor: pointer;
background: #FFC407;
color: #000;
border: none;
border-radius: 50px;
font-weight: 700;
font-size: 15px;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(255, 196, 7, 0.4);
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 196, 7, 0.6);
background: #ffcd2e;
}
button:active {
transform: translateY(0);
}
#downloadButton {
display: none;
margin: 0 auto;
}
/* Responsive design */
@media screen and (max-width: 768px) {
.app-container {
padding: 25px;
}
.logo {
width: 300px;
}
.initial-instruction {
font-size: 14px;
}
.format-selection {
flex-direction: column;
gap: 10px;
}
.format-selection select {
width: 100%;
}
.file-upload-label {
padding: 12px 30px;
font-size: 14px;
}
}
@media screen and (max-width: 480px) {
body {
padding: 10px;
}
.app-container {
padding: 20px;
}
.logo {
width: 250px;
}
}