Manga_OCR / static /ui /styles.css
Drag2121's picture
tesseract
a91e387
/* Base Styles */
:root {
--primary-color: #5359dc;
--secondary-color: #f56565;
--accent-color: #ffc107;
--text-color: #2d3748;
--light-text: #718096;
--white: #fff;
--light-gray: #f7fafc;
--gray: #e2e8f0;
--dark-gray: #a0aec0;
--border-radius: 8px;
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
color: var(--text-color);
line-height: 1.6;
background-color: var(--light-gray);
}
.app-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
h1, h2, h3, h4 {
margin-bottom: 1rem;
font-weight: 700;
line-height: 1.2;
}
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 2rem;
text-align: center;
margin-bottom: 2rem;
}
h3 {
font-size: 1.5rem;
}
p {
margin-bottom: 1rem;
}
a {
color: var(--primary-color);
text-decoration: none;
transition: var(--transition);
}
a:hover {
color: var(--secondary-color);
}
/* Button Styles */
.btn {
display: inline-block;
padding: 10px 20px;
font-weight: 600;
border-radius: var(--border-radius);
cursor: pointer;
transition: var(--transition);
background-color: var(--white);
color: var(--text-color);
border: 1px solid var(--gray);
font-size: 1rem;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: var(--shadow);
}
.btn-primary {
background-color: var(--primary-color);
color: var(--white);
border: none;
}
.btn-primary:hover {
background-color: #4247c0;
}
.btn-large {
padding: 14px 28px;
font-size: 1.1rem;
}
/* Header Styles */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 0;
border-bottom: 1px solid var(--gray);
}
.logo {
display: flex;
align-items: center;
}
.logo-icon {
font-size: 2rem;
color: var(--primary-color);
margin-right: 10px;
}
.logo h1 {
font-size: 1.5rem;
margin-bottom: 0;
}
.nav {
display: flex;
gap: 2rem;
}
.nav a {
color: var(--text-color);
font-weight: 500;
}
.nav a:hover, .nav a.active {
color: var(--primary-color);
}
/* Hero Section */
.hero {
display: flex;
justify-content: space-between;
align-items: center;
padding: 4rem 0;
gap: 2rem;
}
.hero-content {
flex: 1;
}
.hero-content h1 {
font-size: 3rem;
margin-bottom: 1.5rem;
}
.hero-content p {
font-size: 1.2rem;
color: var(--light-text);
margin-bottom: 2rem;
}
.hero-image {
flex: 1;
text-align: center;
}
.hero-image img {
max-width: 100%;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
}
/* Features Section */
.features {
padding: 5rem 0;
background-color: var(--white);
}
.feature-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.feature-card {
background-color: var(--light-gray);
padding: 2rem;
border-radius: var(--border-radius);
text-align: center;
transition: var(--transition);
}
.feature-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow);
}
.feature-card i {
font-size: 2.5rem;
color: var(--primary-color);
margin-bottom: 1rem;
}
/* How It Works Section */
.how-it-works {
padding: 5rem 0;
}
.steps {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
margin-top: 3rem;
}
.step {
text-align: center;
flex: 1;
min-width: 160px;
margin-bottom: 1.5rem;
}
.step-number {
display: flex;
justify-content: center;
align-items: center;
width: 50px;
height: 50px;
margin: 0 auto;
background-color: var(--primary-color);
color: var(--white);
font-size: 1.5rem;
font-weight: bold;
border-radius: 50%;
margin-bottom: 1rem;
}
.step-arrow {
font-size: 2rem;
color: var(--dark-gray);
margin: 0 0.5rem;
}
/* Translator Container */
.translator-container {
padding: 4rem 0;
background-color: var(--white);
border-radius: var(--border-radius);
margin: 2rem 0;
box-shadow: var(--shadow);
}
.translator-tabs {
display: flex;
justify-content: center;
margin-bottom: 2rem;
}
.tab-btn {
padding: 10px 20px;
margin: 0 5px;
background-color: var(--light-gray);
border: none;
border-radius: var(--border-radius);
cursor: pointer;
font-weight: 600;
transition: var(--transition);
}
.tab-btn.active {
background-color: var(--primary-color);
color: var(--white);
}
.tab-content {
max-width: 800px;
margin: 0 auto;
}
.tab-pane {
display: none;
}
.tab-pane.active {
display: block;
}
/* Form Styles */
.translation-form {
background-color: var(--light-gray);
padding: 2rem;
border-radius: var(--border-radius);
margin-bottom: 2rem;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-row {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
}
.form-row .form-group {
flex: 1;
margin-bottom: 0;
}
label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
}
input, select {
width: 100%;
padding: 10px 16px;
border: 1px solid var(--gray);
border-radius: var(--border-radius);
font-size: 1rem;
transition: var(--transition);
}
input:focus, select:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(83, 89, 220, 0.2);
}
/* File Upload Styles */
.file-upload {
position: relative;
display: flex;
flex-direction: column;
}
.file-upload input[type="file"] {
position: absolute;
top: 0;
left: 0;
opacity: 0;
width: 100%;
height: 100%;
cursor: pointer;
}
.file-label {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 12px 20px;
background-color: var(--primary-color);
color: var(--white);
border-radius: var(--border-radius);
cursor: pointer;
transition: var(--transition);
text-align: center;
font-weight: 600;
margin-bottom: 0.5rem;
}
.file-label:hover {
background-color: #4247c0;
}
.file-name {
margin-top: 0.5rem;
color: var(--light-text);
}
/* Results Section */
.results-container {
margin-top: 2rem;
}
.progress-container {
margin-bottom: 2rem;
text-align: center;
}
.progress-text {
margin-bottom: 0.5rem;
font-weight: 600;
}
.progress-bar {
height: 10px;
background-color: var(--gray);
border-radius: 5px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background-color: var(--primary-color);
width: 0%;
transition: width 0.4s ease;
}
.results-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.result-card {
background-color: var(--white);
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow);
}
.result-image {
width: 100%;
height: auto;
object-fit: cover;
}
.result-actions {
display: flex;
justify-content: space-between;
padding: 1rem;
}
/* Pricing Section */
.pricing {
padding: 5rem 0;
background-color: var(--light-gray);
}
.pricing-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
margin-top: 3rem;
}
.pricing-card {
background-color: var(--white);
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
position: relative;
}
.pricing-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.pricing-tag {
position: absolute;
top: 0;
right: 0;
background-color: var(--accent-color);
color: var(--text-color);
padding: 5px 15px;
font-weight: 600;
font-size: 0.9rem;
border-radius: 0 0 0 var(--border-radius);
}
.pricing-header {
padding: 2rem;
text-align: center;
border-bottom: 1px solid var(--gray);
}
.price {
font-size: 2.5rem;
font-weight: 700;
margin: 1rem 0;
}
.price span {
font-size: 1rem;
font-weight: 400;
color: var(--light-text);
}
.pricing-features {
padding: 2rem;
list-style: none;
}
.pricing-features li {
margin-bottom: 1rem;
display: flex;
align-items: center;
}
.pricing-features li i {
margin-right: 0.5rem;
}
.pricing-features .fa-check {
color: #38a169;
}
.pricing-features .fa-times {
color: var(--secondary-color);
}
.pricing-card .btn {
display: block;
margin: 0 2rem 2rem;
}
.pricing-card.featured {
transform: scale(1.05);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
z-index: 1;
}
/* Footer */
.footer {
background-color: var(--primary-color);
color: var(--white);
padding: 3rem 0 1rem;
}
.footer-content {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-bottom: 2rem;
}
.footer-logo {
display: flex;
align-items: center;
margin-bottom: 1rem;
}
.footer-logo i {
font-size: 2rem;
margin-right: 0.5rem;
}
.footer-links ul {
list-style: none;
}
.footer-links li {
margin-bottom: 0.5rem;
}
.footer-links a {
color: var(--white);
}
.footer-links a:hover {
color: var(--accent-color);
}
.footer-social {
display: flex;
gap: 1rem;
}
.footer-social a {
display: flex;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.1);
color: var(--white);
transition: var(--transition);
}
.footer-social a:hover {
background-color: rgba(255, 255, 255, 0.2);
transform: translateY(-3px);
}
.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding-top: 1rem;
text-align: center;
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.7);
}
/* Responsive Styles */
@media (max-width: 768px) {
.hero {
flex-direction: column;
text-align: center;
padding: 2rem 0;
}
.hero-content h1 {
font-size: 2.5rem;
}
.nav {
gap: 1rem;
}
.steps {
flex-direction: column;
}
.step-arrow {
transform: rotate(90deg);
margin: 1rem 0;
}
.form-row {
flex-direction: column;
}
.pricing-card.featured {
transform: none;
}
.footer-content {
flex-direction: column;
align-items: center;
text-align: center;
}
.footer-links, .footer-social {
margin-top: 2rem;
}
}