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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

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

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-section {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

#pac-input {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: border-color 0.3s;
}

#pac-input:focus {
    outline: none;
    border-color: #667eea;
}

.pac-container {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
    font-family: inherit;
}

.place-details {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.place-details h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.place-details p {
    color: #666;
    margin-bottom: 15px;
}

.hidden {
    display: none !important;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

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

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

.btn-secondary {
    background: #e0e0e0;
    color: #333;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.result-section {
    text-align: center;
}

.qr-container {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.qr-container h3 {
    margin-bottom: 20px;
    color: #667eea;
}

#qrcode {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

.url-display {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    word-break: break-all;
}

.url-display a {
    color: #667eea;
    text-decoration: none;
    display: block;
    margin: 10px 0;
}

.url-display a:hover {
    text-decoration: underline;
}

#download-btn {
    margin-top: 10px;
}

.loading {
    text-align: center;
    padding: 40px;
}

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

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

@media (max-width: 640px) {
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 25px;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
}