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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.bubble-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
    top: -150px;
    right: -100px;
}

.bubble-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.08) 100%);
    bottom: -100px;
    left: -80px;
}

.bubble-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.05) 100%);
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.bubble-4 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(124, 58, 237, 0.04) 100%);
    bottom: 20%;
    right: 15%;
}

.query-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.query-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.query-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.query-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.query-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.query-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.query-icon i {
    font-size: 32px;
    color: #fff;
}

.query-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.query-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}

.query-body {
    padding: 28px 32px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.2s;
}

.form-input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    outline: none;
    background: #fff;
    color: #1f2937;
}

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

.form-input:focus ~ .input-icon {
    color: var(--primary);
}

.form-input::placeholder {
    color: #9ca3af;
}

.btn-query {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-query:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.btn-query:active {
    transform: translateY(0);
}

.btn-query:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.result-section {
    margin-top: 24px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: #f9fafb;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #f0f0f0;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.result-header i {
    color: var(--primary);
    font-size: 20px;
}

.result-header span {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 14px;
    color: #6b7280;
}

.result-value {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.empty-state {
    text-align: center;
    padding: 30px 20px;
}

.empty-icon {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.empty-title {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.empty-desc {
    font-size: 14px;
    color: #9ca3af;
}

.query-footer {
    padding: 18px 32px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.copyright {
    font-size: 13px;
    color: #9ca3af;
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .query-header {
        padding: 32px 24px;
    }
    
    .query-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
    
    .query-icon i {
        font-size: 26px;
    }
    
    .query-title {
        font-size: 22px;
    }
    
    .query-body {
        padding: 24px;
    }
    
    .query-footer {
        padding: 16px 24px;
    }
    
    .bubble-1 {
        width: 250px;
        height: 250px;
        top: -100px;
        right: -80px;
    }
    
    .bubble-2 {
        width: 180px;
        height: 180px;
        bottom: -60px;
        left: -50px;
    }
    
    .bubble-3, .bubble-4 {
        display: none;
    }
}
