:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #10b981;
    --accent-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --gray-color: #64748b;
    --light-gray: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #f1f5f9;
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo-container i {
    font-size: 2rem;
    color: var(--primary-color);
}

header h1 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.tagline {
    color: var(--gray-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--light-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.badge i {
    color: var(--primary-color);
}

.tool-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-buttons::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

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

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group input[type="url"],
.input-group input[type="text"] {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.custom-domain {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
}

.custom-domain select {
    padding: 0.9rem 1.2rem;
    border: none;
    background-color: var(--light-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.custom-domain input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: none;
    font-size: 1rem;
}

.custom-domain span {
    padding: 0 0.5rem;
    color: var(--gray-color);
}

.primary-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
}

.advanced-options {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.advanced-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.advanced-options input[type="checkbox"] {
    accent-color: var(--primary-color);
}

.qr-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.option input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.option select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 0.9rem;
}

.option input[type="file"] {
    width: 100%;
    font-size: 0.8rem;
}

.result {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: var(--light-color);
    text-align: center;
}

.qr-placeholder, .analytics-placeholder {
    color: var(--gray-color);
    padding: 2rem;
}

.qr-placeholder i, .analytics-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light-gray);
}

.qr-code {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.shortened-link {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.shortened-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
    font-size: 1.1rem;
}

.copy-btn {
    padding: 0.6rem 1.2rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background-color: #2563eb;
}

.local-notice {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-top: 0.5rem;
}

.features-section {
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 0 0 12px 12px;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

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

.feature-card {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.testimonials {
    padding: 3rem 2rem;
    background-color: white;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

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

.testimonial-card {
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rating {
    color: var(--warning-color);
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.author {
    font-weight: 600;
    color: var(--primary-color);
}

footer {
    margin-top: auto;
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    font-size: 0.9rem;
}

.stats {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* Responsive styles */
@media (max-width: 768px) {
    .tab-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .tab-btn {
        min-width: 120px;
    }

    .custom-domain {
        flex-direction: column;
        border: none;
    }

    .custom-domain select,
    .custom-domain input {
        width: 100%;
        border: 1px solid var(--light-gray);
        border-radius: 8px;
    }

    .custom-domain span {
        display: none;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .tab-content {
        padding: 1.5rem;
    }

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.result {
    animation: fadeIn 0.3s ease;
}

/* Print styles */
@media print {
    .tab-buttons,
    .advanced-options,
    .qr-options,
    .features-section,
    .testimonials,
    footer {
        display: none;
    }

    .tab-content {
        display: block !important;
        padding: 0;
    }

    .result {
        background: none;
        padding: 0;
    }
}