/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #e3f2fd;
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #0056b3 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 270px;
    width: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.nav-brand a:hover .logo-img {
    transform: scale(1.05);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 32px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.full-width {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #0056b3 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Upload Section */
.upload-section {
    padding: 4rem 0;
    background: white;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #764ba2;
    background: rgba(102, 126, 234, 0.05);
}

.upload-content i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.upload-content p {
    color: #666;
    margin-bottom: 1rem;
}

/* Processing Area */
.processing-area {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f3f3f3;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #0056b3 100%);
    width: 0%;
    transition: width 0.3s;
    animation: progress-animation 2s ease-in-out infinite;
}

@keyframes progress-animation {
    0% {
        width: 0%;
    }

    50% {
        width: 80%;
    }

    100% {
        width: 100%;
    }
}

/* Result Area */
.result-area {
    text-align: center;
}

.before-after {
    margin: 2rem 0;
}

.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.image-container {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-container h4 {
    margin-bottom: 1rem;
    color: #333;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
}

.cta-content p:last-child {
    margin-top: 2rem;
    font-size: 1rem;
}

.cta-content p:last-child a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.cta-content p:last-child a:hover {
    text-decoration: underline;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: #e3f2fd;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

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

.feature {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 1rem;
    color: #333;
}

.feature p {
    color: #666;
}

/* Pricing Section */
.pricing {
    padding: 4rem 0;
    background: white;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

.pricing-card {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #667eea;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.price {
    margin-bottom: 2rem;
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price .amount {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

.features-list {
    list-style: none;
    text-align: left;
}

.features-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list i {
    color: #28a745;
}

/* Auth Pages */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #333;
}

.auth-card p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.flash-message {
    background: #28a745;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Image Modal */
.image-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    padding: 1rem;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .image-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .upload-content i {
        font-size: 2.5rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }
}

/* Dashboard Styles */
.dashboard-section {
    padding: 4rem 0;
    background: white;
}

.dashboard-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2.5rem;
}

.collapsible-item {
    cursor: pointer;
    transition: transform 0.3s;
}

.collapsible-item:hover {
    transform: translateY(-2px);
}

.item-summary {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-summary h4 {
    margin: 0;
    color: #333;
}

.item-summary p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-info p {
    margin: 0.25rem 0 0 0;
    font-size: 0.8rem;
    color: #999;
}

.item-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-details {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

.count {
    color: #667eea;
    font-weight: bold;
}

.dashboard-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.images-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.image-item {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s;
    cursor: pointer;
}

.image-item:hover {
    background-color: #f8f9fa;
}

.dashboard-actions {
    text-align: center;
    margin-top: 3rem;
}

.dashboard-actions a {
    margin: 0 1rem;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.order-item {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s;
    cursor: pointer;
}

.order-item:hover {
    background-color: #f8f9fa;
}

.order-summary {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-summary h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.order-summary p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.status-pending {
    color: #ffc107;
}

.status-paid {
    color: #28a745;
}

.status-fulfilled {
    color: #007bff;
}

.status-cancelled {
    color: #dc3545;
}

.expand-icon {
    font-size: 1.2rem;
    color: #667eea;
    transition: transform 0.3s;
}

.order-details {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

.detail-row {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.detail-row strong {
    color: #333;
}

.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .dashboard-actions a {
        display: block;
        margin: 0.5rem auto;
        max-width: 300px;
    }

    .order-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-summary h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .upload-section,
    .features,
    .pricing {
        padding: 2rem 0;
    }

    .auth-card {
        margin: 0 1rem;
    }
}