:root {
    --primary-color: #217346;
    --accent-color: #2563eb;
    --bg-color: #ffffff;
    --text-color: #333333;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--gray-medium);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-accent {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    padding: 0 4px;
    margin: 0 2px;
    border-radius: 4px;
}

nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Language Switcher */
.lang-dropdown {
    position: relative;
    margin-right: 0.5rem;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background-color: var(--gray-light);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    min-width: 120px;
    z-index: 1001;
}

.lang-menu.show {
    display: flex;
}

.lang-option {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 4px;
}

.lang-option:hover {
    background-color: var(--gray-light);
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-medium);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
}

.btn-solid {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-solid:hover {
    background: #105C32;
}

/* Hero Section */
.hero, .pricing-hero {
    text-align: center;
    padding: 5rem 5%;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    color: var(--gray-dark);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.upload-container {
    border: 2px dashed var(--gray-medium);
    border-radius: 12px;
    padding: 3rem;
    background: var(--gray-light);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.upload-container:hover {
    border-color: var(--primary-color);
    background: #f0f0f0;
}

.upload-icon {
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.btn-black {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    cursor: pointer;
}

/* Usage Display */
.usage-display {
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.usage-display.hidden {
    display: none;
}

.font-bold {
    font-weight: 700;
    color: var(--primary-color);
}

/* Features */
.features {
    padding: 4rem 5%;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2rem;
    border: 1px solid var(--gray-medium);
    border-radius: 12px;
    text-align: center;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 4rem 5%;
    background: var(--gray-light);
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.review-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.author {
    font-weight: 600;
}

/* Pricing Section */
.pricing {
    padding: 4rem 5%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.plan-card {
    border: 1px solid var(--gray-medium);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.plan-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(33, 115, 70, 0.15);
}

.plan-card.black {
    background: var(--primary-color);
    color: white;
    border: none;
}

.plan-card.black h3, 
.plan-card.black p, 
.plan-card.black .limit {
    color: white;
}

.limit {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.btn-white-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    display: inline-block;
    margin-top: 1.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-white-outline:hover {
    background: white;
    color: black;
}

/* Footer */
footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--gray-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left a {
    color: var(--gray-dark);
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 0.9rem;
}

.footer-center {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* Toast Notification */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    opacity: 1;
    transition: opacity 0.3s;
}

/* Auth Page Styles */
.auth-body {
    background-color: #f9fafb; /* Light gray background */
}

.auth-container {
    min-height: calc(100vh - 200px); /* Center vertically */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.auth-header {
    margin-bottom: 2rem;
}

#auth-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.auth-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.google-auth-container {
    margin-top: 1.5rem;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-google:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Upgrade Page Specifics */
.upgrade-page {
    background-color: #f9fafb;
    padding-bottom: 4rem;
}

.pricing-hero {
    padding: 4rem 5% 2rem;
    text-align: center;
}

.upgrade-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.plan-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
}

.plan-card.black {
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(33, 115, 70, 0.2);
}

.plan-card.black h3, 
.plan-card.black .price, 
.plan-card.black .currency,
.plan-card.black .amount,
.plan-card.black .period,
.plan-card.black .features-list li,
.plan-card.black .price-subtitle {
    color: white;
}

.plan-card.black .btn-white-outline {
    background: white;
    color: black;
    border: none;
}

.plan-card.black .btn-white-outline:hover {
    background: #f0f0f0;
}

.price {
    margin: 1.5rem 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 4px;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.period {
    color: #666;
    margin-left: 4px;
}

.features-list {
    text-align: left;
    margin: 2rem 0;
    list-style: none;
    padding: 0;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.features-list li::before {
    content: '✓';
    color: #22c55e; /* Green check */
    font-weight: 900;
}

.plan-card.black .features-list li::before {
    color: #4ade80; /* Brighter green for black bg */
}

.save-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #2563eb;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.full-width {
    width: 100%;
}

/* Batch File List Styles */
.file-list {
    width: 100%;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.file-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-align: left; /* Reset text align from center */
}

/* Ensure icons don't get too big */
.file-icon {
    font-size: 1.5rem;
    margin-right: 0.8rem;
    display: flex;
    align-items: center;
}

.file-info {
    display: flex;
    align-items: center;
    z-index: 1;
    flex: 1;
    min-width: 0; /* Allow truncation */
}

.file-details {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allow truncation */
}

.file-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.75rem;
    color: #888;
}

/* Spinner Fix */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
    display: inline-block;
}

/* Preview Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    flex: 1;
    overflow: auto;
    background: #f5f5f5;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.canvas-container {
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
