* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
    padding-top: 100px;
    color: #464f67;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-title {
    color: #464f67;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

.nav-by {
    font-size: 11px;
    font-weight: 600;
    color: #464f67;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    background: #e8e8e8;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

.nav-by:hover {
    background: #464f67;
    color: white;
    border-color: #464f67;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(70, 79, 103, 0.2);
}

.nav-by:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(70, 79, 103, 0.15);
}


.nav-services {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
}

.nav-services-label {
    font-size: 11px;
    font-weight: 600;
    color: #464f67;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: #464f67;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #f0f0f0;
    color: #464f67;
}

.nav-link.active {
    background: #464f67;
    color: white;
}


.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: #464f67;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.02em;
}

.subtitle {
    color: #464f67;
    text-align: center;
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.8;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

#qrInput {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
    background: white;
    color: #464f67;
}

#qrInput:focus {
    border-color: #464f67;
    box-shadow: 0 0 0 3px rgba(70, 79, 103, 0.08);
}

#qrInput::placeholder {
    color: #999;
}

.btn-primary {
    padding: 14px 28px;
    background: #74c16e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #65b05f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(116, 193, 110, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(116, 193, 110, 0.25);
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin-bottom: 24px;
    padding: 24px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.qr-placeholder {
    color: #999;
    font-size: 16px;
    text-align: center;
}

.qr-container svg {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    background: white;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.btn-secondary {
    padding: 12px 24px;
    background: white;
    color: #464f67;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-secondary:hover {
    background: #464f67;
    color: white;
    border-color: #464f67;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(70, 79, 103, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(26, 26, 26, 0.1);
}

/* Upload area styles */
.upload-area {
    border: 2px dashed #d5d5d5;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #464f67;
    background: #f5f5f5;
}

.upload-area.drag-over {
    border-color: #464f67;
    background: #f0f0f0;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-content svg {
    color: #666;
    margin-bottom: 8px;
}

.upload-text {
    color: #464f67;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.upload-formats {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.preview-container {
    margin-bottom: 24px;
    text-align: center;
}

.preview-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
}

.result-container {
    margin-top: 24px;
    padding: 24px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    animation: fadeIn 0.3s ease-out;
}

.result-container h3 {
    color: #464f67;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.result-text {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    word-break: break-all;
    margin-bottom: 16px;
    color: #464f67;
    font-size: 14px;
    line-height: 1.6;
}

.error-message {
    margin-top: 24px;
    padding: 16px;
    background: #fff5f5;
    color: #c62828;
    border-radius: 8px;
    border: 1px solid #ffcdd2;
    border-left: 3px solid #c62828;
    animation: fadeIn 0.3s ease-out;
    font-size: 14px;
}

.bug-report {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.bug-report p {
    margin: 0;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

.bug-report a {
    color: #464f67;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.bug-report a:hover {
    color: #74c16e;
    text-decoration: underline;
}

@media (max-width: 600px) {
    body {
        padding-top: 80px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 20px;
    }
    
    .nav-left {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        align-items: center;
    }
    
    .nav-title-wrapper {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }
    
    .nav-title {
        font-size: 18px;
        text-align: center;
    }
    
    .nav-by {
        font-size: 10px;
    }
    
    
    .nav-services {
        width: 100%;
        align-items: center;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .card {
        padding: 24px 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .upload-area {
        padding: 32px 20px;
    }
}
